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

Unified Diff: ui/message_center/notification.cc

Issue 324583002: The 1st patch to disambiguate message center notifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Justin's comments. Created 6 years, 6 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: ui/message_center/notification.cc
diff --git a/ui/message_center/notification.cc b/ui/message_center/notification.cc
index 479beaab130b83b528af26e2ad836afe2baa2ba8..63bccf74ce4c9f3dd010765bdbb2be56911490d3 100644
--- a/ui/message_center/notification.cc
+++ b/ui/message_center/notification.cc
@@ -126,27 +126,4 @@ void Notification::SetSystemPriority() {
optional_fields_.never_timeout = true;
}
-// static
-scoped_ptr<Notification> Notification::CreateSystemNotification(
- const std::string& notification_id,
- const base::string16& title,
- const base::string16& message,
- const gfx::Image& icon,
- const std::string& system_component_id,
- const base::Closure& click_callback) {
- scoped_ptr<Notification> notification(
- new Notification(
- NOTIFICATION_TYPE_SIMPLE,
- notification_id,
- title,
- message,
- icon,
- base::string16() /* display_source */,
- NotifierId(NotifierId::SYSTEM_COMPONENT, system_component_id),
- RichNotificationData(),
- new HandleNotificationClickedDelegate(click_callback)));
- notification->SetSystemPriority();
- return notification.Pass();
-}
-
} // namespace message_center

Powered by Google App Engine
This is Rietveld 408576698