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

Unified Diff: chrome/browser/net/pref_proxy_config_tracker_impl.cc

Issue 1233043003: Remove some legacy versions of StartsWith and EndsWith. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/net/pref_proxy_config_tracker_impl.cc
diff --git a/chrome/browser/net/pref_proxy_config_tracker_impl.cc b/chrome/browser/net/pref_proxy_config_tracker_impl.cc
index 02469ddf825bc7896e6590fcd44ef607023ca1a2..6de119ea7f9ca9223fe181e13166b5775ee8dceb 100644
--- a/chrome/browser/net/pref_proxy_config_tracker_impl.cc
+++ b/chrome/browser/net/pref_proxy_config_tracker_impl.cc
@@ -27,7 +27,8 @@ namespace {
// Determine if |proxy| is of the form "*.googlezip.net".
bool IsGooglezipDataReductionProxy(const net::ProxyServer& proxy) {
return proxy.is_valid() && !proxy.is_direct() &&
- base::EndsWith(proxy.host_port_pair().host(), ".googlezip.net", true);
+ base::EndsWith(proxy.host_port_pair().host(), ".googlezip.net",
+ base::CompareCase::SENSITIVE);
}
// Removes any Data Reduction Proxies like *.googlezip.net from |proxy_list|.

Powered by Google App Engine
This is Rietveld 408576698