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

Unified Diff: components/sync/model/model_type_sync_bridge.h

Issue 2461723002: [Sync] DeviceInfoService static method and error cleanup. (Closed)
Patch Set: removing stdint.h from device_info_service.h Created 4 years, 2 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 | « components/sync/device_info/device_info_service_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/model/model_type_sync_bridge.h
diff --git a/components/sync/model/model_type_sync_bridge.h b/components/sync/model/model_type_sync_bridge.h
index dd9d5f6db2baad3511afe9e1418995bdb2822dd7..8c236ccd70f7678db04b0e540d9846975ceeda2e 100644
--- a/components/sync/model/model_type_sync_bridge.h
+++ b/components/sync/model/model_type_sync_bridge.h
@@ -26,7 +26,11 @@ class MetadataChangeList;
// Interface implemented by model types to receive updates from sync via the
// SharedModelTypeProcessor. Provides a way for sync to update the data and
-// metadata for entities, as well as the model type state.
+// metadata for entities, as well as the model type state. Sync bridge
+// implementations have the responsibility of providing thier change_processor()
+// with metadata through ModelTypeChangeProcessor::OnMetadataLoaded() as soon as
+// possible. Sync will wait for this method to be called, and afterwards it will
+// start calling into the bridge.
class ModelTypeSyncBridge : public base::SupportsWeakPtr<ModelTypeSyncBridge> {
public:
typedef base::Callback<void(SyncError, std::unique_ptr<DataBatch>)>
« no previous file with comments | « components/sync/device_info/device_info_service_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698