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

Unified Diff: chrome/browser/chromeos/policy/consumer_management_notifier.cc

Issue 1292003004: Elide origins displayed on web notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Style nit Created 5 years, 4 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: chrome/browser/chromeos/policy/consumer_management_notifier.cc
diff --git a/chrome/browser/chromeos/policy/consumer_management_notifier.cc b/chrome/browser/chromeos/policy/consumer_management_notifier.cc
index e3594bcee1b13f28251941b4262d0ddc0ccea0df..18e4790c2d03c16cc4899e52ea8f2626911b6cab 100644
--- a/chrome/browser/chromeos/policy/consumer_management_notifier.cc
+++ b/chrome/browser/chromeos/policy/consumer_management_notifier.cc
@@ -165,7 +165,7 @@ void ConsumerManagementNotifier::ShowDesktopNotification(
l10n_util::GetStringUTF16(button_label_message_id)));
Notification notification(
- message_center::NOTIFICATION_TYPE_SIMPLE, GURL(notification_url),
+ message_center::NOTIFICATION_TYPE_SIMPLE,
l10n_util::GetStringUTF16(title_message_id),
l10n_util::GetStringUTF16(body_message_id),
ui::ResourceBundle::GetSharedInstance().GetImageNamed(
@@ -173,7 +173,7 @@ void ConsumerManagementNotifier::ShowDesktopNotification(
message_center::NotifierId(message_center::NotifierId::SYSTEM_COMPONENT,
notification_id),
base::string16(), // display_source
- notification_id, optional_field,
+ GURL(notification_url), notification_id, optional_field,
new DesktopNotificationDelegate(notification_id, button_click_callback));
notification.SetSystemPriority();

Powered by Google App Engine
This is Rietveld 408576698