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

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

Issue 2864713002: [USS] Add function for update storage key for processor (Closed)
Patch Set: Created 3 years, 7 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/model/model_type_change_processor.h
diff --git a/components/sync/model/model_type_change_processor.h b/components/sync/model/model_type_change_processor.h
index e4208100d1e8a08d2e677aeb7c9d422184546394..8ea0aff7fd36b0f9120e7e7e8b12d6d6a991e2d8 100644
--- a/components/sync/model/model_type_change_processor.h
+++ b/components/sync/model/model_type_change_processor.h
@@ -48,6 +48,14 @@ class ModelTypeChangeProcessor {
virtual void Delete(const std::string& storage_key,
MetadataChangeList* metadata_change_list) = 0;
+ // Inform the processor that storage key has chagned.
+ // TODO(gangwu): crbug.com/719570 should remove this after bug fixed.
+ // This function should only be called for the data type which will not create
pavely 2017/05/09 00:49:24 will not => does not base on => based on
Gang Wu 2017/05/09 22:33:15 Done.
+ // storage key base on syncer::EntityData.
+ virtual void UpdateStorageKey(const std::string& old_storage_key,
+ const std::string& new_storage_key,
+ MetadataChangeList* metadata_change_list) = 0;
+
// The bridge is expected to call this exactly once unless it encounters an
// error. Ideally ModelReadyToSync() is called as soon as possible during
// initialization, and must be called before invoking either Put() or

Powered by Google App Engine
This is Rietveld 408576698