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

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

Issue 10817023: [Sync] Pass the correct set of enabled types to the sync notifier (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments 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
« no previous file with comments | « sync/internal_api/public/test/fake_sync_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..88993148feb42a6147335d1eb4aa640362033305 100644
--- a/sync/internal_api/test/fake_sync_manager.cc
+++ b/sync/internal_api/test/fake_sync_manager.cc
@@ -42,6 +42,12 @@ ModelTypeSet FakeSyncManager::GetAndResetDownloadedTypes() {
return downloaded_types;
}
+ModelTypeSet FakeSyncManager::GetAndResetEnabledTypes() {
+ ModelTypeSet enabled_types = enabled_types_;
+ enabled_types_.Clear();
+ return enabled_types;
+}
+
bool FakeSyncManager::Init(
const FilePath& database_location,
const WeakHandle<JsEventHandler>& event_handler,
@@ -102,7 +108,7 @@ void FakeSyncManager::UpdateCredentials(const SyncCredentials& credentials) {
}
void FakeSyncManager::UpdateEnabledTypes(const ModelTypeSet& types) {
- // Do nothing.
+ enabled_types_ = types;
}
void FakeSyncManager::StartSyncingNormally(
« no previous file with comments | « sync/internal_api/public/test/fake_sync_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698