summaryrefslogtreecommitdiffstats
path: root/extensions/browser
diff options
context:
space:
mode:
authorrkc <rkc@chromium.org>2015-09-28 19:24:14 -0700
committerCommit bot <commit-bot@chromium.org>2015-09-29 02:25:40 +0000
commit17fcdab015a073437404f35e7e63c1464280d36b (patch)
treeff11fdb0bfeeebbfd58cdb50f9f90e336c702424 /extensions/browser
parentd02508f8c010b1415f5f1521a6f4cee260d1f8a9 (diff)
downloadchromium_src-17fcdab015a073437404f35e7e63c1464280d36b.zip
chromium_src-17fcdab015a073437404f35e7e63c1464280d36b.tar.gz
chromium_src-17fcdab015a073437404f35e7e63c1464280d36b.tar.bz2
Add Linux support for the Bluetooth API.
This refactors all the code in //device/bluetooth to be non-ChromeOS specific and adds code to enable all of it to run on Linux through the linux specific DBusThreadManager that is added. This CL depends on https://codereview.chromium.org/1347193004/ Owners reviews requested, //device - armansito@ //extensions - rockot@ //chrome/browser/chrome_browser_main_linux.* - jhawkins@ R=armansito@chromium.org, jhawkins@chromium.org, rockot@chromium.org BUG=522633 Review URL: https://codereview.chromium.org/1367663002 Cr-Commit-Position: refs/heads/master@{#351237}
Diffstat (limited to 'extensions/browser')
-rw-r--r--extensions/browser/api/bluetooth/bluetooth_event_router.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/extensions/browser/api/bluetooth/bluetooth_event_router.cc b/extensions/browser/api/bluetooth/bluetooth_event_router.cc
index 9302f7c..c55a23d 100644
--- a/extensions/browser/api/bluetooth/bluetooth_event_router.cc
+++ b/extensions/browser/api/bluetooth/bluetooth_event_router.cc
@@ -59,6 +59,9 @@ BluetoothEventRouter::~BluetoothEventRouter() {
}
bool BluetoothEventRouter::IsBluetoothSupported() const {
+#if defined(OS_LINUX)
+ return true;
+#endif
return adapter_.get() ||
device::BluetoothAdapterFactory::IsBluetoothAdapterAvailable();
}