| 211 | } |
| 212 | |
| 213 | std::string LoadDeviceToken(const std::string& data_dir) { |
| 214 | std::ifstream in(DeviceTokenPath(data_dir)); |
| 215 | std::string token; |
| 216 | in >> token; |
| 217 | return token; |
| 218 | } |
| 219 | |
| 220 | bool DeleteDeviceToken(const std::string& data_dir, std::string* error) { |
| 221 | const auto path = DeviceTokenPath(data_dir); |
no test coverage detected