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

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: Switch to ProxyTypes Created 7 years, 10 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 | « chrome/browser/sync/glue/proxy_data_type_controller.cc ('k') | chrome/browser/sync/sync_prefs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ba44c8703118e9a2e75c62548cdc04e1a6bfff35..9ea68f0102ff556a4998e12a51dd4caf0f05d37a 100644
--- a/chrome/browser/sync/glue/sync_backend_host.cc
+++ b/chrome/browser/sync/glue/sync_backend_host.cc
@@ -689,6 +689,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::ProxyTypes());
if (!types_to_download.Empty())
types_to_download.Put(syncer::NIGORI);
@@ -1386,7 +1387,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::ProxyTypes());
sync_manager_->UpdateEnabledTypes(enabled_types);
const syncer::ModelTypeSet failed_configuration_types =
« no previous file with comments | « chrome/browser/sync/glue/proxy_data_type_controller.cc ('k') | chrome/browser/sync/sync_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698