Index: extensions/browser/api/bluetooth/bluetooth_api.cc |
diff --git a/extensions/browser/api/bluetooth/bluetooth_api.cc b/extensions/browser/api/bluetooth/bluetooth_api.cc |
index 4570f4ed6826b5a263b68465e3813e744d4a4299..ff9780bb6e09650f5c6ccd0457dd178bdd9f38a7 100644 |
--- a/extensions/browser/api/bluetooth/bluetooth_api.cc |
+++ b/extensions/browser/api/bluetooth/bluetooth_api.cc |
@@ -170,11 +170,11 @@ void BluetoothStartDiscoveryFunction::OnErrorCallback() { |
bool BluetoothStartDiscoveryFunction::DoWork( |
scoped_refptr<BluetoothAdapter> adapter) { |
- GetEventRouter(browser_context())->StartDiscoverySession( |
- adapter.get(), |
- extension_id(), |
- base::Bind(&BluetoothStartDiscoveryFunction::OnSuccessCallback, this), |
- base::Bind(&BluetoothStartDiscoveryFunction::OnErrorCallback, this)); |
+ GetEventRouter(browser_context()) |
+ ->StartDiscoverySession( |
+ adapter.get(), GetExtensionId(), |
+ base::Bind(&BluetoothStartDiscoveryFunction::OnSuccessCallback, this), |
+ base::Bind(&BluetoothStartDiscoveryFunction::OnErrorCallback, this)); |
return true; |
} |
@@ -190,11 +190,11 @@ void BluetoothStopDiscoveryFunction::OnErrorCallback() { |
bool BluetoothStopDiscoveryFunction::DoWork( |
scoped_refptr<BluetoothAdapter> adapter) { |
- GetEventRouter(browser_context())->StopDiscoverySession( |
- adapter.get(), |
- extension_id(), |
- base::Bind(&BluetoothStopDiscoveryFunction::OnSuccessCallback, this), |
- base::Bind(&BluetoothStopDiscoveryFunction::OnErrorCallback, this)); |
+ GetEventRouter(browser_context()) |
+ ->StopDiscoverySession( |
+ adapter.get(), GetExtensionId(), |
+ base::Bind(&BluetoothStopDiscoveryFunction::OnSuccessCallback, this), |
+ base::Bind(&BluetoothStopDiscoveryFunction::OnErrorCallback, this)); |
return true; |
} |