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

Unified Diff: net/proxy/proxy_bypass_rules.cc

Issue 2956643002: Add GURL::HostNoBracketsPiece() (Closed)
Patch Set: Created 3 years, 6 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: 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.

Powered by Google App Engine
This is Rietveld 408576698