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

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: Oops mac compile again 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
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..f73086f560fb7f7df98a2bacdba7d1af2d09a7c3 100644
--- a/ui/message_center/views/notification_view.cc
+++ b/ui/message_center/views/notification_view.cc
@@ -531,10 +531,10 @@ base::string16 NotificationView::FormatContextMessage(
if (notification.UseOriginAsContextMessage()) {
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);
+ return gfx::ElideText(url_formatter::FormatUrlForSecurityDisplay(
+ url, url_formatter::SchemeDisplay::OMIT_WEB),
+ views::Label().font_list(), kContextMessageViewWidth,
+ gfx::ELIDE_HEAD);
}
return gfx::TruncateString(notification.context_message(),
« components/url_formatter/elide_url.h ('K') | « 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