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

Unified Diff: chrome/browser/extensions/api/dial/dial_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: 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/dial/dial_api.cc
diff --git a/chrome/browser/extensions/api/dial/dial_api.cc b/chrome/browser/extensions/api/dial/dial_api.cc
index 9d7714e8128896eb5d0df8091789c82db254bfb7..3e3dd17aba4300ea49eb3a680068d53759166095 100644
--- a/chrome/browser/extensions/api/dial/dial_api.cc
+++ b/chrome/browser/extensions/api/dial/dial_api.cc
@@ -105,8 +105,8 @@ void DialAPI::SendEventOnUIThread(const DialRegistry::DeviceList& devices) {
args.push_back(api_device);
}
scoped_ptr<base::ListValue> results = api::dial::OnDeviceList::Create(args);
- scoped_ptr<Event> event(
- new Event(dial::OnDeviceList::kEventName, results.Pass()));
+ scoped_ptr<Event> event(new Event(
+ events::UNKNOWN, dial::OnDeviceList::kEventName, results.Pass()));
EventRouter::Get(profile_)->BroadcastEvent(event.Pass());
}
@@ -136,7 +136,8 @@ void DialAPI::SendErrorOnUIThread(const DialRegistry::DialErrorCode code) {
}
scoped_ptr<base::ListValue> results = api::dial::OnError::Create(dial_error);
- scoped_ptr<Event> event(new Event(dial::OnError::kEventName, results.Pass()));
+ scoped_ptr<Event> event(
+ new Event(events::UNKNOWN, dial::OnError::kEventName, results.Pass()));
EventRouter::Get(profile_)->BroadcastEvent(event.Pass());
}

Powered by Google App Engine
This is Rietveld 408576698