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

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: 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..e05271cfdf09f7cb9754f4b41307db5618de5dbd 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() {
Mihai Parparita -not on Chrome 2012/08/17 20:30:07 Does this need a stub implementation in the #else
bryeung 2012/08/20 23:13:19 Good catch! Done.
+ SetResult(Value::CreateStringValue(GetAdapter(profile())->name()));
+ return true;
+}
+
BluetoothGetDevicesFunction::BluetoothGetDevicesFunction()
: callbacks_pending_(0) {}

Powered by Google App Engine
This is Rietveld 408576698