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

Unified Diff: components/password_manager/core/browser/password_ui_utils.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: rebase Created 4 years, 8 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/password_manager/core/browser/password_ui_utils.h ('k') | components/url_formatter/elide_url.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/password_manager/core/browser/password_ui_utils.cc
diff --git a/components/password_manager/core/browser/password_ui_utils.cc b/components/password_manager/core/browser/password_ui_utils.cc
index 0693bd99b04ebc67467d808394901253cd81f8e6..239213192858277e3234f5713582700c7099205d 100644
--- a/components/password_manager/core/browser/password_ui_utils.cc
+++ b/components/password_manager/core/browser/password_ui_utils.cc
@@ -52,8 +52,9 @@ std::string GetShownOriginAndLinkUrl(
}
std::string GetShownOrigin(const GURL& origin) {
- std::string original = base::UTF16ToUTF8(
- url_formatter::FormatUrlForSecurityDisplayOmitScheme(origin));
+ std::string original =
+ base::UTF16ToUTF8(url_formatter::FormatUrlForSecurityDisplay(
+ origin, url_formatter::SchemeDisplay::OMIT_HTTP_AND_HTTPS));
base::StringPiece result = original;
for (base::StringPiece prefix : kRemovedPrefixes) {
if (base::StartsWith(result, prefix,
« no previous file with comments | « components/password_manager/core/browser/password_ui_utils.h ('k') | components/url_formatter/elide_url.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698