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

Unified Diff: chrome/browser/extensions/api/automation_internal/automation_util.cc

Issue 1201063002: Set up the infrastructure for Extension event metrics. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaaaaase 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/automation_internal/automation_util.cc
diff --git a/chrome/browser/extensions/api/automation_internal/automation_util.cc b/chrome/browser/extensions/api/automation_internal/automation_util.cc
index 6af78f1ac48e2d78c44533e53c5ebbdcd6137f98..b5168d607dd0ebac5de1dbcdc3f0f3dbf74c057e 100644
--- a/chrome/browser/extensions/api/automation_internal/automation_util.cc
+++ b/chrome/browser/extensions/api/automation_internal/automation_util.cc
@@ -114,7 +114,8 @@ void DispatchEventInternal(content::BrowserContext* context,
const std::string& event_name,
scoped_ptr<base::ListValue> args) {
if (context && EventRouter::Get(context)) {
- scoped_ptr<Event> event(new Event(event_name, args.Pass()));
+ scoped_ptr<Event> event(
+ new Event(events::UNKNOWN, event_name, args.Pass()));
event->restrict_to_browser_context = context;
EventRouter::Get(context)->BroadcastEvent(event.Pass());
}

Powered by Google App Engine
This is Rietveld 408576698