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

Unified Diff: chrome/browser/sync/glue/sync_backend_host.cc

Issue 11958029: [Sync] Add support for proxy types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 7 years, 11 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/glue/sync_backend_host.cc
diff --git a/chrome/browser/sync/glue/sync_backend_host.cc b/chrome/browser/sync/glue/sync_backend_host.cc
index 974e7b15a68f395251cec5d6e3e0e56288774046..b0f9406dade6c51b00e2b20ab57b766818044e71 100644
--- a/chrome/browser/sync/glue/sync_backend_host.cc
+++ b/chrome/browser/sync/glue/sync_backend_host.cc
@@ -685,6 +685,7 @@ void SyncBackendHost::ConfigureDataTypes(
GetDataTypesInState(ENABLED, config_state_map),
syncer::Union(GetDataTypesInState(DISABLED, config_state_map),
GetDataTypesInState(FAILED, config_state_map)));
+ types_to_download.RemoveAll(syncer::VirtualTypes());
if (!types_to_download.Empty())
types_to_download.Put(syncer::NIGORI);
@@ -1368,7 +1369,8 @@ void SyncBackendHost::Core::DoFinishConfigureDataTypes(
// Update the enabled types for the bridge and sync manager.
syncer::ModelSafeRoutingInfo routing_info;
registrar_->GetModelSafeRoutingInfo(&routing_info);
- const syncer::ModelTypeSet enabled_types = GetRoutingInfoTypes(routing_info);
+ syncer::ModelTypeSet enabled_types = GetRoutingInfoTypes(routing_info);
+ enabled_types.RemoveAll(syncer::VirtualTypes());
sync_manager_->UpdateEnabledTypes(enabled_types);
const syncer::ModelTypeSet failed_configuration_types =

Powered by Google App Engine
This is Rietveld 408576698