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

Unified Diff: chrome/browser/chromeos/power/peripheral_battery_observer.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/power/peripheral_battery_observer.cc
diff --git a/chrome/browser/chromeos/power/peripheral_battery_observer.cc b/chrome/browser/chromeos/power/peripheral_battery_observer.cc
index 7867495c6d9c562131fcb5ae8e1271ec1218abb6..d21891a8d543e8bd20329ad1cba3a53a6f33ac32 100644
--- a/chrome/browser/chromeos/power/peripheral_battery_observer.cc
+++ b/chrome/browser/chromeos/power/peripheral_battery_observer.cc
@@ -209,12 +209,12 @@ bool PeripheralBatteryObserver::PostNotification(const std::string& address,
battery.level);
Notification notification(
- message_center::NOTIFICATION_TYPE_SIMPLE, GURL(kNotificationOriginUrl),
- base::UTF8ToUTF16(battery.name), string_text,
- ui::ResourceBundle::GetSharedInstance().GetImageNamed(
- IDR_NOTIFICATION_PERIPHERAL_BATTERY_LOW),
+ message_center::NOTIFICATION_TYPE_SIMPLE, base::UTF8ToUTF16(battery.name),
+ string_text, ui::ResourceBundle::GetSharedInstance().GetImageNamed(
+ IDR_NOTIFICATION_PERIPHERAL_BATTERY_LOW),
message_center::NotifierId(GURL(kNotificationOriginUrl)),
- base::string16(), address, message_center::RichNotificationData(),
+ base::string16(), GURL(kNotificationOriginUrl), address,
+ message_center::RichNotificationData(),
new PeripheralBatteryNotificationDelegate(address));
notification.set_priority(message_center::SYSTEM_PRIORITY);

Powered by Google App Engine
This is Rietveld 408576698