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

Unified Diff: ui/message_center/notification.cc

Issue 1395483002: Increase Web Notification timeout to 20 seconds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use constant for delay 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
Index: ui/message_center/notification.cc
diff --git a/ui/message_center/notification.cc b/ui/message_center/notification.cc
index af35e57c3313e40ca3504832773597d883c7926e..a39f7c75fffa00ee9ec8bbad02cfafacd1e0589c 100644
--- a/ui/message_center/notification.cc
+++ b/ui/message_center/notification.cc
@@ -26,6 +26,7 @@ ButtonInfo::ButtonInfo(const base::string16& title)
RichNotificationData::RichNotificationData()
: priority(DEFAULT_PRIORITY),
+ is_web_notification(false),
never_timeout(false),
timestamp(base::Time::Now()),
context_message(base::string16()),
@@ -36,6 +37,7 @@ RichNotificationData::RichNotificationData()
RichNotificationData::RichNotificationData(const RichNotificationData& other)
: priority(other.priority),
+ is_web_notification(other.is_web_notification),
never_timeout(other.never_timeout),
timestamp(other.timestamp),
context_message(other.context_message),
@@ -139,6 +141,7 @@ void Notification::CopyState(Notification* base) {
is_read_ = base->is_read_;
if (!delegate_.get())
delegate_ = base->delegate();
+ optional_fields_.is_web_notification = base->is_web_notification();
optional_fields_.never_timeout = base->never_timeout();
}

Powered by Google App Engine
This is Rietveld 408576698