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

Unified Diff: chrome/browser/installable/installable_manager.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 | « no previous file | chrome/test/chromedriver/net/websocket.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/installable/installable_manager.cc
diff --git a/chrome/browser/installable/installable_manager.cc b/chrome/browser/installable/installable_manager.cc
index 5bfa16bbf3b75ed932584d9bb9530bde71f35efd..390fd5b4b9d89bd27ba93f7fb5eadf968e0b2fe3 100644
--- a/chrome/browser/installable/installable_manager.cc
+++ b/chrome/browser/installable/installable_manager.cc
@@ -143,7 +143,7 @@ bool InstallableManager::IsContentSecure(content::WebContents* web_contents) {
// Whitelist localhost. Check the VisibleURL to match what the
// SecurityStateTabHelper looks at.
- if (net::IsLocalhost(web_contents->GetVisibleURL().HostNoBrackets()))
+ if (net::IsLocalhost(web_contents->GetVisibleURL().HostNoBracketsPiece()))
return true;
security_state::SecurityInfo security_info;
« no previous file with comments | « no previous file | chrome/test/chromedriver/net/websocket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698