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

Unified Diff: chrome/browser/chromeos/proxy_cros_settings_parser.cc

Issue 2391453002: Remove stl_util's deletion functions from net/proxy/. (Closed)
Patch Set: fixes Created 4 years, 2 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 | « no previous file | chromeos/network/onc/onc_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/proxy_cros_settings_parser.cc
diff --git a/chrome/browser/chromeos/proxy_cros_settings_parser.cc b/chrome/browser/chromeos/proxy_cros_settings_parser.cc
index f6969d64ce540e17ab3a406c78d9118f5dce114d..3e94c7680b6a760c62bb561d11a7646081227e73 100644
--- a/chrome/browser/chromeos/proxy_cros_settings_parser.cc
+++ b/chrome/browser/chromeos/proxy_cros_settings_parser.cc
@@ -356,9 +356,9 @@ bool GetProxyPrefValue(const UIProxyConfigService& config_service,
data = CreateServerPortValue(config.socks_proxy);
} else if (path == kProxyIgnoreList) {
base::ListValue* list = new base::ListValue();
- net::ProxyBypassRules::RuleList bypass_rules = config.bypass_rules.rules();
- for (size_t x = 0; x < bypass_rules.size(); x++)
- list->AppendString(bypass_rules[x]->ToString());
+ const auto& bypass_rules = config.bypass_rules.rules();
+ for (const auto& rule : bypass_rules)
+ list->AppendString(rule->ToString());
data = list;
} else {
*out_value = NULL;
« no previous file with comments | « no previous file | chromeos/network/onc/onc_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698