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

Unified Diff: components/sync/device_info/device_info_sync_bridge.h

Issue 2468423010: [Sync] ModelTypeStore::ReadMetadataCallback now returns a MetadataBatch (Closed)
Patch Set: Use SyncError instead of Result. Created 4 years, 1 month 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/device_info/device_info_sync_bridge.h
diff --git a/components/sync/device_info/device_info_sync_bridge.h b/components/sync/device_info/device_info_sync_bridge.h
index 35701b7b609603096b83c531452651564551c81c..2cfa1e5a9906cce7b5de464fb5e2d054ebd6e244 100644
--- a/components/sync/device_info/device_info_sync_bridge.h
+++ b/components/sync/device_info/device_info_sync_bridge.h
@@ -92,10 +92,8 @@ class DeviceInfoSyncBridge : public ModelTypeSyncBridge,
std::unique_ptr<ModelTypeStore> store);
void OnReadAllData(ModelTypeStore::Result result,
std::unique_ptr<ModelTypeStore::RecordList> record_list);
- void OnReadAllMetadata(
- ModelTypeStore::Result result,
- std::unique_ptr<ModelTypeStore::RecordList> metadata_records,
- const std::string& global_metadata);
+ void OnReadAllMetadata(SyncError error,
skym 2016/11/05 00:45:42 A little bit odd how it has to deal with Result ob
maxbogue 2016/11/07 17:03:39 No, the plan is only to change the metadata one. T
+ std::unique_ptr<MetadataBatch> metadata_batch);
void OnCommit(ModelTypeStore::Result result);
// Load metadata if the data is loaded and the provider is initialized.

Powered by Google App Engine
This is Rietveld 408576698