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

Unified Diff: content/browser/notifications/notification_database_data_conversions.cc

Issue 1313363006: Plumb requireInteraction to PlatformNotificationData & database (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@constructor
Patch Set: Fix includes Created 5 years, 4 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: content/browser/notifications/notification_database_data_conversions.cc
diff --git a/content/browser/notifications/notification_database_data_conversions.cc b/content/browser/notifications/notification_database_data_conversions.cc
index e195d52cf0289c9514674b00d87ebed671644270..c6095e4055a17381bcbbe015bc00b4312fc06da0 100644
--- a/content/browser/notifications/notification_database_data_conversions.cc
+++ b/content/browser/notifications/notification_database_data_conversions.cc
@@ -56,6 +56,7 @@ bool DeserializeNotificationDatabaseData(const std::string& input,
}
notification_data->silent = payload.silent();
+ notification_data->require_interaction = payload.require_interaction();
if (payload.data().length()) {
notification_data->data.assign(payload.data().begin(),
@@ -107,6 +108,7 @@ bool SerializeNotificationDatabaseData(const NotificationDatabaseData& input,
payload->add_vibration_pattern(notification_data.vibration_pattern[i]);
payload->set_silent(notification_data.silent);
+ payload->set_require_interaction(notification_data.require_interaction);
if (notification_data.data.size()) {
payload->set_data(&notification_data.data.front(),

Powered by Google App Engine
This is Rietveld 408576698