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

Unified Diff: chrome/browser/extensions/extension_app_api.cc

Issue 8567018: Limit number of notifications that can be received by the client. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 | « chrome/browser/extensions/app_notification_test_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_app_api.cc
===================================================================
--- chrome/browser/extensions/extension_app_api.cc (revision 109957)
+++ chrome/browser/extensions/extension_app_api.cc (working copy)
@@ -5,6 +5,7 @@
#include "chrome/browser/extensions/extension_app_api.h"
#include "base/values.h"
+#include "base/time.h"
#include "chrome/browser/extensions/app_notification_manager.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/profiles/profile.h"
@@ -47,7 +48,7 @@
EXTENSION_FUNCTION_VALIDATE(details->GetString(kBodyTextKey, &body));
scoped_ptr<AppNotification> item(new AppNotification(
- true, "", id, title, body));
+ true, base::Time::Now(), "", id, title, body));
if (details->HasKey(kLinkUrlKey)) {
std::string link_url;
« no previous file with comments | « chrome/browser/extensions/app_notification_test_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698