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

Unified Diff: components/payments/content/origin_security_checker.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
Index: components/payments/content/origin_security_checker.cc
diff --git a/components/payments/content/origin_security_checker.cc b/components/payments/content/origin_security_checker.cc
index 20986082d4796c4eeb7d7326ba6f1add2804dea1..e25f558f42d4261d8998cf1881d5f49696edc4aa 100644
--- a/components/payments/content/origin_security_checker.cc
+++ b/components/payments/content/origin_security_checker.cc
@@ -23,7 +23,7 @@ bool OriginSecurityChecker::IsSchemeCryptographic(const GURL& url) {
// static
bool OriginSecurityChecker::IsOriginLocalhostOrFile(const GURL& url) {
return url.is_valid() &&
- (net::IsLocalhost(url.HostNoBrackets()) || url.SchemeIsFile());
+ (net::IsLocalhost(url.HostNoBracketsPiece()) || url.SchemeIsFile());
}
} // namespace payments
« no previous file with comments | « chrome/test/chromedriver/net/websocket.cc ('k') | content/browser/frame_host/mixed_content_navigation_throttle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698