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

Unified Diff: ui/message_center/views/notification_view.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/url_formatter/elide_url_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/views/notification_view.cc
diff --git a/ui/message_center/views/notification_view.cc b/ui/message_center/views/notification_view.cc
index 23f298a762a1f712be20e913612b5a8481e90d57..3c20438a211aa61fff44a293142c75e29905e934 100644
--- a/ui/message_center/views/notification_view.cc
+++ b/ui/message_center/views/notification_view.cc
@@ -532,9 +532,9 @@ base::string16 NotificationView::FormatContextMessage(
const GURL url = notification.origin_url();
DCHECK(url.is_valid());
return gfx::ElideText(
- url_formatter::FormatUrlForSecurityDisplayOmitScheme(url),
- views::Label().font_list(), kContextMessageViewWidth,
- gfx::ELIDE_HEAD);
+ url_formatter::FormatUrlForSecurityDisplay(
+ url, url_formatter::SchemeDisplay::OMIT_HTTP_AND_HTTPS),
+ views::Label().font_list(), kContextMessageViewWidth, gfx::ELIDE_HEAD);
}
return gfx::TruncateString(notification.context_message(),
« no previous file with comments | « components/url_formatter/elide_url_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698