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

Unified Diff: components/sync/engine_impl/model_type_worker.cc

Issue 2442583003: [Sync] Start implementation of migration for USS. (Closed)
Patch Set: Fix other tests. Created 4 years, 2 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/engine_impl/model_type_worker.cc
diff --git a/components/sync/engine_impl/model_type_worker.cc b/components/sync/engine_impl/model_type_worker.cc
index 25422f64b1d5263f3a9f4e73fd65495db997067b..f3d81321206af51b331713e5c93664fac2ca58c1 100644
--- a/components/sync/engine_impl/model_type_worker.cc
+++ b/components/sync/engine_impl/model_type_worker.cc
@@ -27,6 +27,7 @@ namespace syncer {
ModelTypeWorker::ModelTypeWorker(
ModelType type,
const sync_pb::ModelTypeState& initial_state,
+ bool trigger_initial_sync,
std::unique_ptr<Cryptographer> cryptographer,
NudgeHandler* nudge_handler,
std::unique_ptr<ModelTypeProcessor> model_type_processor)
@@ -39,7 +40,7 @@ ModelTypeWorker::ModelTypeWorker(
DCHECK(model_type_processor_);
// Request an initial sync if it hasn't been completed yet.
- if (!model_type_state_.initial_sync_done()) {
+ if (trigger_initial_sync) {
nudge_handler_->NudgeForInitialDownload(type_);
}

Powered by Google App Engine
This is Rietveld 408576698