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 461aaa58412d4c4637681c86ed808c63a6b12d9c..2be546aabe63b751c04a7c686b20f8ae04edd720 100644 |
--- a/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc |
+++ b/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc |
@@ -88,6 +88,11 @@ bool BluetoothGetAddressFunction::RunImpl() { |
return true; |
} |
+bool BluetoothGetNameFunction::RunImpl() { |
+ SetResult(Value::CreateStringValue(GetAdapter(profile())->name())); |
+ return true; |
+} |
+ |
BluetoothGetDevicesFunction::BluetoothGetDevicesFunction() |
: callbacks_pending_(0) {} |
@@ -521,6 +526,11 @@ bool BluetoothGetAddressFunction::RunImpl() { |
return false; |
} |
+bool BluetoothGetNameFunction::RunImpl() { |
+ NOTREACHED() << "Not implemented yet"; |
+ return false; |
+} |
+ |
bool BluetoothGetDevicesFunction::RunImpl() { |
NOTREACHED() << "Not implemented yet"; |
return false; |