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

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

Issue 2916133002: [Sync] Support commit only types. (Closed)
Patch Set: Rebase again. Created 3 years, 6 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.cc
diff --git a/components/sync/model/model_type_change_processor.cc b/components/sync/model/model_type_change_processor.cc
index f32b12fd5839eaa18ba646fcd7c7ccaea0ec91e1..217300be395a5c0f9ee48e506bf29c6a74fdd7b1 100644
--- a/components/sync/model/model_type_change_processor.cc
+++ b/components/sync/model/model_type_change_processor.cc
@@ -14,7 +14,8 @@ std::unique_ptr<ModelTypeChangeProcessor> ModelTypeChangeProcessor::Create(
const base::RepeatingClosure& dump_stack,
ModelType type,
ModelTypeSyncBridge* bridge) {
- return base::MakeUnique<SharedModelTypeProcessor>(type, bridge, dump_stack);
+ return base::MakeUnique<SharedModelTypeProcessor>(
+ type, bridge, dump_stack, CommitOnlyTypes().Has(type));
}
ModelTypeChangeProcessor::ModelTypeChangeProcessor() {}
« no previous file with comments | « components/sync/engine_impl/syncer_unittest.cc ('k') | components/sync/model_impl/shared_model_type_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698