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

Unified Diff: content/browser/frame_host/mixed_content_navigation_throttle.cc

Issue 2956643002: Add GURL::HostNoBracketsPiece() (Closed)
Patch Set: Simplify test 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
« no previous file with comments | « components/payments/content/origin_security_checker.cc ('k') | content/common/origin_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/mixed_content_navigation_throttle.cc
diff --git a/content/browser/frame_host/mixed_content_navigation_throttle.cc b/content/browser/frame_host/mixed_content_navigation_throttle.cc
index a267d39e9084fcf3f86fb684029d14e06694e3de..d0a7466be1b81db8b73029d4fa5375d06ebc95be 100644
--- a/content/browser/frame_host/mixed_content_navigation_throttle.cc
+++ b/content/browser/frame_host/mixed_content_navigation_throttle.cc
@@ -70,7 +70,7 @@ bool IsUrlPotentiallySecure(const GURL& url) {
// https://tools.ietf.org/html/draft-west-let-localhost-be-localhost-03. See:
// https://crbug.com/691930.
if (is_secure && url.SchemeIs(url::kHttpScheme) &&
- net::IsLocalHostname(url.HostNoBrackets(), nullptr)) {
+ net::IsLocalHostname(url.HostNoBracketsPiece(), nullptr)) {
is_secure = false;
}
« no previous file with comments | « components/payments/content/origin_security_checker.cc ('k') | content/common/origin_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698