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

Unified Diff: extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_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_low_energy/bluetooth_low_energy_event_router.cc
diff --git a/extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc b/extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc
index e1f59fb2cd44e8e271acb94cf95b65aa3d2c8c33..6884735ea73efb6099f394e8ff26cba5f423261c 100644
--- a/extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc
+++ b/extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc
@@ -866,8 +866,8 @@ void BluetoothLowEnergyEventRouter::GattServiceRemoved(
scoped_ptr<base::ListValue> args =
apibtle::OnServiceRemoved::Create(api_service);
- scoped_ptr<Event> event(
- new Event(apibtle::OnServiceRemoved::kEventName, args.Pass()));
+ scoped_ptr<Event> event(new Event(
+ events::UNKNOWN, apibtle::OnServiceRemoved::kEventName, args.Pass()));
EventRouter::Get(browser_context_)->BroadcastEvent(event.Pass());
}
@@ -887,8 +887,8 @@ void BluetoothLowEnergyEventRouter::GattDiscoveryCompleteForService(
scoped_ptr<base::ListValue> args =
apibtle::OnServiceAdded::Create(api_service);
- scoped_ptr<Event> event(
- new Event(apibtle::OnServiceAdded::kEventName, args.Pass()));
+ scoped_ptr<Event> event(new Event(
+ events::UNKNOWN, apibtle::OnServiceAdded::kEventName, args.Pass()));
EventRouter::Get(browser_context_)->BroadcastEvent(event.Pass());
}
@@ -1160,7 +1160,8 @@ void BluetoothLowEnergyEventRouter::DispatchEventToExtensionsWithPermission(
// Send the event.
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()));
EventRouter::Get(browser_context_)->DispatchEventToExtension(
extension_id, event.Pass());
}

Powered by Google App Engine
This is Rietveld 408576698