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

Unified Diff: components/sync_driver/data_type_controller.h

Issue 1848793006: [Sync] Register USS types with ModelTypeRegistry before download (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
Index: components/sync_driver/data_type_controller.h
diff --git a/components/sync_driver/data_type_controller.h b/components/sync_driver/data_type_controller.h
index 0c1a61d22a6619621cf5a59cfb4f55c2106a594c..8f369f5508333d243ca28d0f5e067ec9409d0b2a 100644
--- a/components/sync_driver/data_type_controller.h
+++ b/components/sync_driver/data_type_controller.h
@@ -98,6 +98,10 @@ class DataTypeController
// the models are ready.
virtual void LoadModels(const ModelLoadCallback& model_load_callback) = 0;
+ // Registers with sync backend if needed. This function is called by
+ // DataTypeManager before downloading initial data.
+ virtual void RegisterWithBackend(BackendDataTypeConfigurer* configurer) = 0;
+
// Will start a potentially asynchronous operation to perform the
// model association. Once the model association is done the callback will
// be invoked.

Powered by Google App Engine
This is Rietveld 408576698