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

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: Inline SignIn and UpdateCredentials 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 1951e7f9caf0827c4df2d48be899d6c5c5781b0e..27c031e44b001653d4375ded870c6825ef434016 100644
--- a/sync/internal_api/test/fake_sync_manager.cc
+++ b/sync/internal_api/test/fake_sync_manager.cc
@@ -50,7 +50,6 @@ bool FakeSyncManager::Init(
bool use_ssl,
const scoped_refptr<base::TaskRunner>& blocking_task_runner,
scoped_ptr<HttpPostProviderFactory> post_factory,
- const ModelSafeRoutingInfo& model_safe_routing_info,
const std::vector<ModelSafeWorker*>& workers,
ExtensionsActivityMonitor* extensions_activity_monitor,
ChangeDelegate* change_delegate,
@@ -66,8 +65,8 @@ bool FakeSyncManager::Init(
PurgePartiallySyncedTypes();
FOR_EACH_OBSERVER(SyncManager::Observer, observers_,
OnInitializationComplete(
- WeakHandle<JsBackend>(),
- true));
+ syncer::WeakHandle<syncer::JsBackend>(),
+ true, initial_sync_ended_types_));
return true;
}
@@ -94,6 +93,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