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

Unified Diff: chrome/browser/notifications/notification_ui_manager_android.cc

Issue 1388483002: Implement the Notification `timestamp` property (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: chrome/browser/notifications/notification_ui_manager_android.cc
diff --git a/chrome/browser/notifications/notification_ui_manager_android.cc b/chrome/browser/notifications/notification_ui_manager_android.cc
index f2aefc966768f4a0eae16d669239a0c46ed83cea..19626a3dbe4cb82ef0a8a534ab9036bcc583a412 100644
--- a/chrome/browser/notifications/notification_ui_manager_android.cc
+++ b/chrome/browser/notifications/notification_ui_manager_android.cc
@@ -152,7 +152,8 @@ void NotificationUIManagerAndroid::Add(const Notification& notification,
Java_NotificationUIManager_displayNotification(
env, java_object_.obj(), persistent_notification_id, origin.obj(),
profile_id.obj(), profile->IsOffTheRecord(), tag.obj(), title.obj(),
- body.obj(), icon.obj(), vibration_pattern.obj(), notification.silent(),
+ body.obj(), icon.obj(), vibration_pattern.obj(),
+ notification.timestamp().ToJavaTime(), notification.silent(),
action_titles.obj());
regenerated_notification_infos_[persistent_notification_id] =

Powered by Google App Engine
This is Rietveld 408576698