Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(672)

Unified Diff: components/sync_driver/device_info_service.h

Issue 1888923003: [Sync] DeviceInfoService should format ClientTag in backwards compatible way (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Sky's and Max's comments. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/sync_driver/device_info_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync_driver/device_info_service.h
diff --git a/components/sync_driver/device_info_service.h b/components/sync_driver/device_info_service.h
index cbd0abfd544c831e82fc5396a15df4250cf1f831..59ea378f6f4a1b379f7ad8dc2503ac090c745253 100644
--- a/components/sync_driver/device_info_service.h
+++ b/components/sync_driver/device_info_service.h
@@ -76,6 +76,13 @@ class DeviceInfoService : public syncer_v2::ModelTypeService,
private:
friend class DeviceInfoServiceTest;
+ // Formats ClientTag form DeviceInfoSpecifics.
+ static std::string SpecificsToTag(
+ const sync_pb::DeviceInfoSpecifics& specifics);
+
+ // Extracts cache_guid from ClientTag.
+ static std::string TagToCacheGuid(const std::string& tag);
+
static scoped_ptr<sync_pb::DeviceInfoSpecifics> CopyToSpecifics(
const sync_driver::DeviceInfo& info);
« no previous file with comments | « no previous file | components/sync_driver/device_info_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698