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

Unified Diff: sync/engine/build_commit_command.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/chrome_browser.gypi ('k') | sync/engine/download_updates_command.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/build_commit_command.cc
diff --git a/sync/engine/build_commit_command.cc b/sync/engine/build_commit_command.cc
index ba356e86bffb09f483e3998ba6e73a5730e32719..de1dae559e648237d77555b4d97918ff310559c8 100644
--- a/sync/engine/build_commit_command.cc
+++ b/sync/engine/build_commit_command.cc
@@ -103,6 +103,8 @@ void BuildCommitCommand::AddClientConfigParamsToMessage(
sync_pb::ClientConfigParams* config_params = message->mutable_config_params();
for (std::map<ModelType, ModelSafeGroup>::const_iterator iter =
routing_info.begin(); iter != routing_info.end(); ++iter) {
+ if (ProxyTypes().Has(iter->first))
+ continue;
int field_number = GetSpecificsFieldNumberFromModelType(iter->first);
config_params->mutable_enabled_type_ids()->Add(field_number);
}
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | sync/engine/download_updates_command.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698