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

Unified Diff: chrome/browser/chromeos/extensions/dictionary_event_router.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/chromeos/extensions/dictionary_event_router.cc
diff --git a/chrome/browser/chromeos/extensions/dictionary_event_router.cc b/chrome/browser/chromeos/extensions/dictionary_event_router.cc
index 90d9ceeea879698bdfb1726113deb91f358969af..579d2eacf1e324f6cb51f62205522e1b4de81706 100644
--- a/chrome/browser/chromeos/extensions/dictionary_event_router.cc
+++ b/chrome/browser/chromeos/extensions/dictionary_event_router.cc
@@ -46,6 +46,7 @@ void ExtensionDictionaryEventRouter::DispatchLoadedEventIfLoaded() {
scoped_ptr<base::ListValue> args(new base::ListValue());
// The router will only send the event to extensions that are listening.
scoped_ptr<extensions::Event> event(new extensions::Event(
+ extensions::events::UNKNOWN,
extensions::InputMethodAPI::kOnDictionaryLoaded, args.Pass()));
event->restrict_to_browser_context = context_;
router->BroadcastEvent(event.Pass());
@@ -79,6 +80,7 @@ void ExtensionDictionaryEventRouter::OnCustomDictionaryChanged(
// The router will only send the event to extensions that are listening.
scoped_ptr<extensions::Event> event(new extensions::Event(
+ extensions::events::UNKNOWN,
extensions::InputMethodAPI::kOnDictionaryChanged, args.Pass()));
event->restrict_to_browser_context = context_;
router->BroadcastEvent(event.Pass());

Powered by Google App Engine
This is Rietveld 408576698