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

Unified Diff: components/url_formatter/elide_url.cc

Issue 1843063002: Don't show scheme in permission prompts if it is HTTPS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/url_formatter/elide_url.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/url_formatter/elide_url.cc
diff --git a/components/url_formatter/elide_url.cc b/components/url_formatter/elide_url.cc
index 45984304a0fd4dd99557e8db7e5f492044986bce..15798538fe68d420d98a3d8adc85464656dccbff 100644
--- a/components/url_formatter/elide_url.cc
+++ b/components/url_formatter/elide_url.cc
@@ -140,7 +140,7 @@ base::string16 FormatUrlForSecurityDisplayInternal(const GURL& url,
const std::string& host = origin.host();
base::string16 result;
- if (!omit_scheme || !url.SchemeIsHTTPOrHTTPS())
+ if (!omit_scheme || !url.SchemeIs(url::kHttpsScheme))
palmer 2016/03/30 20:23:34 Maybe url.SchemeIsCryptographic()?
result = base::UTF8ToUTF16(scheme) + scheme_separator;
result += base::UTF8ToUTF16(host);
« no previous file with comments | « components/url_formatter/elide_url.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698