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

Unified Diff: chrome/browser/extensions/api/bluetooth/bluetooth_api.cc

Issue 10837294: Add bluetooth.getName API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments Created 8 years, 4 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/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;

Powered by Google App Engine
This is Rietveld 408576698