Index: chrome/browser/extensions/api/bluetooth/bluetooth_api.cc |
diff --git a/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc b/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc |
index 026c5edf507065ff6c57456f49fb1805fa9b25f5..772ebd4df082e95f579f63d32a74d83144073824 100644 |
--- a/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc |
+++ b/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc |
@@ -296,9 +296,8 @@ bool BluetoothGetDeviceFunction::DoWork( |
scoped_ptr<GetDevice::Params> params(GetDevice::Params::Create(*args_)); |
EXTENSION_FUNCTION_VALIDATE(params.get() != NULL); |
- const std::string& device_address = params->device_address; |
- BluetoothDevice* device = adapter->GetDevice(device_address); |
+ BluetoothDevice* device = adapter->GetDevice(params->device_address); |
if (device) { |
bluetooth::Device extension_device; |
bluetooth::BluetoothDeviceToApiDevice(*device, &extension_device); |