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

Unified Diff: chrome/browser/extensions/api/preference/preference_helpers.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/preference/preference_helpers.cc
diff --git a/chrome/browser/extensions/api/preference/preference_helpers.cc b/chrome/browser/extensions/api/preference/preference_helpers.cc
index 86f39d5a5a8923edce2152f94968b6c73206c122..7f78ddc0da39a2a9b5d381d659e9bb1408ce7822 100644
--- a/chrome/browser/extensions/api/preference/preference_helpers.cc
+++ b/chrome/browser/extensions/api/preference/preference_helpers.cc
@@ -126,7 +126,8 @@ void DispatchEventToExtensions(
}
scoped_ptr<base::ListValue> args_copy(args->DeepCopy());
- scoped_ptr<Event> event(new Event(event_name, args_copy.Pass()));
+ scoped_ptr<Event> event(
+ new Event(events::UNKNOWN, event_name, args_copy.Pass()));
event->restrict_to_browser_context = restrict_to_profile;
router->DispatchEventToExtension(extension->id(), event.Pass());
}

Powered by Google App Engine
This is Rietveld 408576698