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

Unified Diff: chrome/common/extensions/permissions/bluetooth_device_permission.cc

Issue 11819007: Changed DefaultAdapter to RunCallbackOnAdapterReady function. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created IsBluetoothSupported in BluetoothEventRouter to fix browser_tests. Created 7 years, 11 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/common/extensions/permissions/bluetooth_device_permission.cc
diff --git a/chrome/common/extensions/permissions/bluetooth_device_permission.cc b/chrome/common/extensions/permissions/bluetooth_device_permission.cc
index 8c14494a2f58975eadf367ba70575b7b9f4cf55f..fccd9e576c82c035510276495b678b7378c4bae5 100644
--- a/chrome/common/extensions/permissions/bluetooth_device_permission.cc
+++ b/chrome/common/extensions/permissions/bluetooth_device_permission.cc
@@ -39,7 +39,7 @@ PermissionMessages BluetoothDevicePermission::GetMessages() const {
PermissionMessages result;
scoped_refptr<device::BluetoothAdapter> bluetooth_adapter =
- device::BluetoothAdapterFactory::DefaultAdapter();
+ device::BluetoothAdapterFactory::GetAdapter();
for (std::set<BluetoothDevicePermissionData>::const_iterator i =
data_set_.begin(); i != data_set_.end(); ++i) {

Powered by Google App Engine
This is Rietveld 408576698