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

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

Issue 1656243002: Implementation of renotify flag for Notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 10 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 94872091ba40301feb77fcf04a0d8f82d630f1ef..ce4c75c7a4f465f18c17615b2423c3d5c059d908 100644
--- a/content/browser/notifications/notification_database_data_conversions.cc
+++ b/content/browser/notifications/notification_database_data_conversions.cc
@@ -59,6 +59,7 @@ bool DeserializeNotificationDatabaseData(const std::string& input,
notification_data->timestamp =
base::Time::FromInternalValue(payload.timestamp());
+ notification_data->renotify = payload.renotify();
notification_data->silent = payload.silent();
notification_data->require_interaction = payload.require_interaction();
@@ -113,6 +114,7 @@ bool SerializeNotificationDatabaseData(const NotificationDatabaseData& input,
payload->add_vibration_pattern(notification_data.vibration_pattern[i]);
payload->set_timestamp(notification_data.timestamp.ToInternalValue());
+ payload->set_renotify(notification_data.renotify);
payload->set_silent(notification_data.silent);
payload->set_require_interaction(notification_data.require_interaction);

Powered by Google App Engine
This is Rietveld 408576698