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

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: 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..48c84894b3239ae992f601a72e922f91d0dd3af9 100644
--- a/ui/message_center/notification.cc
+++ b/ui/message_center/notification.cc
@@ -70,6 +70,21 @@ Notification::Notification(NotificationType type,
is_read_(false),
delegate_(delegate) {}
+Notification::Notification(const std::string& id, const Notification& other)
+ : type_(other.type_),
+ id_(id),
+ title_(other.title_),
+ message_(other.message_),
+ icon_(other.icon_),
+ display_source_(other.display_source_),
+ notifier_id_(other.notifier_id_),
+ serial_number_(other.serial_number_),
+ optional_fields_(other.optional_fields_),
+ shown_as_popup_(other.shown_as_popup_),
+ is_read_(other.is_read_),
+ delegate_(other.delegate_) {
+}
+
Notification::Notification(const Notification& other)
: type_(other.type_),
id_(other.id_),

Powered by Google App Engine
This is Rietveld 408576698