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

Unified Diff: chrome/browser/extensions/api/notifications/notifications_api.cc

Issue 1201063002: Set up the infrastructure for Extension event metrics. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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/extensions/api/notifications/notifications_api.cc
diff --git a/chrome/browser/extensions/api/notifications/notifications_api.cc b/chrome/browser/extensions/api/notifications/notifications_api.cc
index 17063dfd5e6caff646f6feeded9b71303aa7908d..cb02df57e7a79389cd2c4b8d6c5fb3410075aa27 100644
--- a/chrome/browser/extensions/api/notifications/notifications_api.cc
+++ b/chrome/browser/extensions/api/notifications/notifications_api.cc
@@ -184,7 +184,7 @@ class NotificationsApiDelegate : public NotificationDelegate {
if (!event_router_)
return;
- scoped_ptr<Event> event(new Event(name, args.Pass()));
+ scoped_ptr<Event> event(new Event(events::UNKNOWN, name, args.Pass()));
event->user_gesture = user_gesture;
event_router_->DispatchEventToExtension(extension_id_, event.Pass());
}

Powered by Google App Engine
This is Rietveld 408576698