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

Unified Diff: chrome/browser/extensions/api/notification/notification_api.cc

Issue 12335024: Change eventTime field to standard chrome.* API format. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/notification/notification_apitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/notification/notification_api.cc
diff --git a/chrome/browser/extensions/api/notification/notification_api.cc b/chrome/browser/extensions/api/notification/notification_api.cc
index a0f465e10962ad5830529f18b7231ae26150ea25..c2f845a0bfa004a2d8d4648fc7b028f8a543de34 100644
--- a/chrome/browser/extensions/api/notification/notification_api.cc
+++ b/chrome/browser/extensions/api/notification/notification_api.cc
@@ -152,7 +152,7 @@ void NotificationApiFunction::CreateNotification(
optional_fields->SetInteger(ui::notifications::kPriorityKey,
*options->priority);
if (options->event_time.get())
- optional_fields->SetString(ui::notifications::kTimestampKey,
+ optional_fields->SetDouble(ui::notifications::kTimestampKey,
*options->event_time);
if (options->buttons.get()) {
if (options->buttons->size() > 0) {
« no previous file with comments | « no previous file | chrome/browser/extensions/api/notification/notification_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698