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 51344ab9a00de7e28f602b4fad25f7ce7f588333..5e4a7f3d80f9bd2f6205fe2e716b3a9157ebce94 100644 |
--- a/chrome/browser/chromeos/power/peripheral_battery_observer.cc |
+++ b/chrome/browser/chromeos/power/peripheral_battery_observer.cc |
@@ -216,17 +216,21 @@ bool PeripheralBatteryObserver::PostNotification(const std::string& address, |
battery.level); |
Notification notification( |
- // TODO(mukai): add SYSTEM priority and use here. |
+ message_center::NOTIFICATION_TYPE_SIMPLE, |
GURL(kNotificationOriginUrl), |
- ui::ResourceBundle::GetSharedInstance().GetImageNamed( |
- IDR_NOTIFICATION_PERIPHERAL_BATTERY_LOW), |
base::UTF8ToUTF16(battery.name), |
string_text, |
+ ui::ResourceBundle::GetSharedInstance().GetImageNamed( |
+ IDR_NOTIFICATION_PERIPHERAL_BATTERY_LOW), |
blink::WebTextDirectionDefault, |
+ message_center::NotifierId(GURL(kNotificationOriginUrl)), |
base::string16(), |
base::UTF8ToUTF16(address), |
+ message_center::RichNotificationData(), |
new PeripheralBatteryNotificationDelegate(address)); |
+ notification.set_priority(message_center::SYSTEM_PRIORITY); |
+ |
notification_manager->Add( |
notification, |
ProfileManager::GetPrimaryUserProfile()); |