Commit f1b84062 authored by Tetsui Ohkubo's avatar Tetsui Ohkubo Committed by Commit Bot

Set timestamp to push messaging default notification.

This CL sets current timestamp to the default notification of push
messaging.
Previously, invalid time was shown when new style notification
chrome://flags/#enable-message-center-new-style-notification
is Enabled (which is ToT default).

TEST=manual
BUG=768695

Change-Id: Id253c990d39a8f8df71472c47137b8252a9186d4
Reviewed-on: https://chromium-review.googlesource.com/683914
Commit-Queue: Tetsui Ohkubo <tetsui@chromium.org>
Commit-Queue: Peter Beverloo <peter@chromium.org>
Reviewed-by: default avatarPeter Beverloo <peter@chromium.org>
Cr-Commit-Position: refs/heads/master@{#504296}
parent f865c593
......@@ -78,6 +78,7 @@ NotificationDatabaseData CreateDatabaseData(
l10n_util::GetStringUTF16(IDS_PUSH_MESSAGING_GENERIC_NOTIFICATION_BODY);
notification_data.tag = kPushMessagingForcedNotificationTag;
notification_data.icon = GURL();
notification_data.timestamp = base::Time::Now();
notification_data.silent = true;
NotificationDatabaseData database_data;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment