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

Unified Diff: ui/message_center/views/notification_view.cc

Issue 1841653003: Drop |languages| from {Format,Elide}Url* and IDNToUnicode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo in elide_url.cc 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 | « third_party/WebKit/public/platform/Platform.h ('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 b1b346e186e6659fb1126155fa5fd7a638afbf2f..32aedfb240001b49b3176b9773a55078a049c53a 100644
--- a/ui/message_center/views/notification_view.cc
+++ b/ui/message_center/views/notification_view.cc
@@ -529,12 +529,10 @@ base::string16 NotificationView::FormatContextMessage(
if (notification.UseOriginAsContextMessage()) {
const GURL url = notification.origin_url();
DCHECK(url.is_valid());
- // TODO(palmer): Find a way to get the Profile's real languages.
- // crbug.com/496965.
- return gfx::ElideText(url_formatter::FormatUrlForSecurityDisplayOmitScheme(
- url, std::string()),
- views::Label().font_list(), kContextMessageViewWidth,
- gfx::ELIDE_HEAD);
+ return gfx::ElideText(
+ url_formatter::FormatUrlForSecurityDisplayOmitScheme(url),
+ views::Label().font_list(), kContextMessageViewWidth,
+ gfx::ELIDE_HEAD);
}
return gfx::TruncateString(notification.context_message(),
« no previous file with comments | « third_party/WebKit/public/platform/Platform.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698