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

Unified Diff: components/sync/model_impl/model_type_store_impl.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/model_impl/model_type_store_impl.h
diff --git a/components/sync/model_impl/model_type_store_impl.h b/components/sync/model_impl/model_type_store_impl.h
index 025b9f114e884fa97f9967668f4751ddcc37be8d..172cf09707ec40e11e5ba29cb80aad39f84c1c86 100644
--- a/components/sync/model_impl/model_type_store_impl.h
+++ b/components/sync/model_impl/model_type_store_impl.h
@@ -103,6 +103,12 @@ class ModelTypeStoreImpl : public ModelTypeStore, public base::NonThreadSafe {
void WriteModificationsDone(const CallbackWithResult& callback,
Result result);
+ // Helper function to create a SyncError with message |msg|.
+ SyncError MakeSyncError(const std::string& msg);
+
+ // The model type using this store.
+ const ModelType type_;
skym 2016/11/05 00:45:42 What do we think about removing data_prefix_/metad
maxbogue 2016/11/07 17:03:39 Unsure; I don't have a good sense of the cost of s
+
// Backend should be deleted on backend thread.
// To accomplish this store's dtor posts task to backend thread passing
// backend ownership to task parameter.

Powered by Google App Engine
This is Rietveld 408576698