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

Unified Diff: chrome/browser/notifications/desktop_notification_service.cc

Issue 576823003: Merge two Notification constructors, increase priority of low-battery notification. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Wrap kNotificationOriginUrl in GURL Created 6 years, 3 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/notifications/desktop_notification_service.cc
diff --git a/chrome/browser/notifications/desktop_notification_service.cc b/chrome/browser/notifications/desktop_notification_service.cc
index c53742b75fb2f626fc4704d57af2862bf9b577f7..f0d58bae4a6e812373aaaaebf87c81d2359e45a0 100644
--- a/chrome/browser/notifications/desktop_notification_service.cc
+++ b/chrome/browser/notifications/desktop_notification_service.cc
@@ -88,9 +88,17 @@ std::string DesktopNotificationService::AddIconNotification(
const base::string16& replace_id,
NotificationDelegate* delegate,
Profile* profile) {
- Notification notification(origin_url, icon, title, message,
+ Notification notification(message_center::NOTIFICATION_TYPE_SIMPLE,
+ origin_url,
+ title,
+ message,
+ icon,
blink::WebTextDirectionDefault,
- base::string16(), replace_id, delegate);
+ message_center::NotifierId(origin_url),
+ base::string16(),
+ replace_id,
+ message_center::RichNotificationData(),
+ delegate);
g_browser_process->notification_ui_manager()->Add(notification, profile);
return notification.delegate_id();
}
« no previous file with comments | « chrome/browser/chromeos/power/peripheral_battery_observer.cc ('k') | chrome/browser/notifications/notification.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698