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

Unified Diff: net/proxy/proxy_bypass_rules.cc

Issue 2956643002: Add GURL::HostNoBracketsPiece() (Closed)
Patch Set: Simplify test Created 3 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
« no previous file with comments | « ios/web/public/origin_util.mm ('k') | net/url_request/url_request_http_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/proxy/proxy_bypass_rules.cc
diff --git a/net/proxy/proxy_bypass_rules.cc b/net/proxy/proxy_bypass_rules.cc
index b1ebb0a463678e7231348a7d9095eb5fe92c79a0..3cd509c3b4bc7af55f99055de502111a38132204 100644
--- a/net/proxy/proxy_bypass_rules.cc
+++ b/net/proxy/proxy_bypass_rules.cc
@@ -101,7 +101,7 @@ class BypassIPBlockRule : public ProxyBypassRules::Rule {
// Parse the input IP literal to a number.
IPAddress ip_address;
- if (!ip_address.AssignFromIPLiteral(url.HostNoBrackets()))
+ if (!ip_address.AssignFromIPLiteral(url.HostNoBracketsPiece()))
return false;
// Test if it has the expected prefix.
« no previous file with comments | « ios/web/public/origin_util.mm ('k') | net/url_request/url_request_http_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698