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

Unified Diff: sync/internal_api/test/fake_sync_manager.cc

Issue 10804039: Make SyncBackendRegistrar aware of loaded data (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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: sync/internal_api/test/fake_sync_manager.cc
diff --git a/sync/internal_api/test/fake_sync_manager.cc b/sync/internal_api/test/fake_sync_manager.cc
index ab6bfab95a2c8484fc01a9febeac88c178e8679c..43e55ab91a47c117a16e001c646391a8d8eecdf0 100644
--- a/sync/internal_api/test/fake_sync_manager.cc
+++ b/sync/internal_api/test/fake_sync_manager.cc
@@ -51,7 +51,6 @@ bool FakeSyncManager::Init(
bool use_ssl,
const scoped_refptr<base::TaskRunner>& blocking_task_runner,
scoped_ptr<HttpPostProviderFactory> post_factory,
- const syncer::ModelSafeRoutingInfo& model_safe_routing_info,
const std::vector<syncer::ModelSafeWorker*>& workers,
syncer::ExtensionsActivityMonitor* extensions_activity_monitor,
ChangeDelegate* change_delegate,
@@ -68,7 +67,7 @@ bool FakeSyncManager::Init(
FOR_EACH_OBSERVER(SyncManager::Observer, observers_,
OnInitializationComplete(
syncer::WeakHandle<syncer::JsBackend>(),
- true));
+ true, initial_sync_ended_types_));
return true;
}
@@ -95,6 +94,7 @@ bool FakeSyncManager::PurgePartiallySyncedTypes() {
partial_types.Put(i.Get());
}
progress_marker_types_.RemoveAll(partial_types);
+ cleaned_types_.PutAll(partial_types);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698