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

Unified Diff: chrome/browser/sync/test_profile_sync_service.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
Index: chrome/browser/sync/test_profile_sync_service.cc
diff --git a/chrome/browser/sync/test_profile_sync_service.cc b/chrome/browser/sync/test_profile_sync_service.cc
index 51a915d9c16a24330044ee020741e99261b3d7a5..6cd5ad55f55235654e101732d7cae1cdb2866bfc 100644
--- a/chrome/browser/sync/test_profile_sync_service.cc
+++ b/chrome/browser/sync/test_profile_sync_service.cc
@@ -86,12 +86,11 @@ void SyncBackendHostForProfileSyncTest::RequestConfigureSyncer(
const syncer::ModelSafeRoutingInfo& routing_info,
const base::Callback<void(syncer::ModelTypeSet)>& ready_task,
const base::Closure& retry_callback) {
- syncer::ModelTypeSet sync_ended;
- if (!fail_initial_download_)
- sync_ended.PutAll(types_to_config);
+ syncer::ModelTypeSet failed_configuration_types;
+ if (fail_initial_download_)
+ failed_configuration_types = types_to_config;
- FinishConfigureDataTypesOnFrontendLoop(types_to_config,
- sync_ended,
+ FinishConfigureDataTypesOnFrontendLoop(failed_configuration_types,
ready_task);
}
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host_unittest.cc ('k') | sync/internal_api/public/test/fake_sync_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698