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

Unified Diff: extensions/browser/api/bluetooth/bluetooth_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: extensions/browser/api/bluetooth/bluetooth_event_router.cc
diff --git a/extensions/browser/api/bluetooth/bluetooth_event_router.cc b/extensions/browser/api/bluetooth/bluetooth_event_router.cc
index e603b905de8570e622bfe997df7390dda18a286c..32e44c952a563083759186bdf7fad4fe918969b9 100644
--- a/extensions/browser/api/bluetooth/bluetooth_event_router.cc
+++ b/extensions/browser/api/bluetooth/bluetooth_event_router.cc
@@ -329,9 +329,9 @@ void BluetoothEventRouter::DispatchAdapterStateEvent() {
scoped_ptr<base::ListValue> args =
bluetooth::OnAdapterStateChanged::Create(state);
- scoped_ptr<Event> event(new Event(
- bluetooth::OnAdapterStateChanged::kEventName,
- args.Pass()));
+ scoped_ptr<Event> event(
+ new Event(events::UNKNOWN, bluetooth::OnAdapterStateChanged::kEventName,
+ args.Pass()));
EventRouter::Get(browser_context_)->BroadcastEvent(event.Pass());
}
@@ -343,7 +343,7 @@ void BluetoothEventRouter::DispatchDeviceEvent(
scoped_ptr<base::ListValue> args =
bluetooth::OnDeviceAdded::Create(extension_device);
- scoped_ptr<Event> event(new Event(event_name, args.Pass()));
+ scoped_ptr<Event> event(new Event(events::UNKNOWN, event_name, args.Pass()));
EventRouter::Get(browser_context_)->BroadcastEvent(event.Pass());
}

Powered by Google App Engine
This is Rietveld 408576698