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

Unified Diff: ui/message_center/notification.h

Issue 1395093002: Fix system notifications incorrectly marked as type WEB_PAGE (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@timeout
Patch Set: Fix typo Created 5 years, 2 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
« no previous file with comments | « ui/message_center/message_center_style.cc ('k') | ui/message_center/notification.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/notification.h
diff --git a/ui/message_center/notification.h b/ui/message_center/notification.h
index 41dfa2149443ca5c0d012a1c722a4335f0585dfd..f4dce7b2672514bbc7343ec37669c3f9b214245b 100644
--- a/ui/message_center/notification.h
+++ b/ui/message_center/notification.h
@@ -41,7 +41,6 @@ class MESSAGE_CENTER_EXPORT RichNotificationData {
~RichNotificationData();
int priority;
- bool is_web_notification;
bool never_timeout;
base::Time timestamp;
base::string16 context_message;
@@ -76,7 +75,7 @@ class MESSAGE_CENTER_EXPORT Notification {
virtual ~Notification();
// Copies the internal on-memory state from |base|, i.e. shown_as_popup,
- // is_read, is_web_notification and never_timeout.
+ // is_read and never_timeout.
void CopyState(Notification* base);
NotificationType type() const { return type_; }
@@ -194,14 +193,6 @@ class MESSAGE_CENTER_EXPORT Notification {
// The notification with lesser serial_number is considered 'older'.
unsigned serial_number() { return serial_number_; }
- // Gets and sets whether this was shown using the Web Notifications API.
- bool is_web_notification() const {
- return optional_fields_.is_web_notification;
- }
- void set_is_web_notification(bool is_web_notification) {
- optional_fields_.is_web_notification = is_web_notification;
- }
-
// Gets and sets whether the notifiction should remain onscreen permanently.
bool never_timeout() const { return optional_fields_.never_timeout; }
void set_never_timeout(bool never_timeout) {
« no previous file with comments | « ui/message_center/message_center_style.cc ('k') | ui/message_center/notification.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698