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

Unified Diff: device/bluetooth/bluetooth_adapter.h

Issue 1784333002: Add Device Policy Handler for Bluetooth, and allow disabling the Bluetooth adapter on Chrome OS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed IsDisabled for now, added conditional compilation (cros only) Created 4 years, 9 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
« no previous file with comments | « chrome/chrome_browser_chromeos.gypi ('k') | device/bluetooth/bluetooth_adapter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_adapter.h
diff --git a/device/bluetooth/bluetooth_adapter.h b/device/bluetooth/bluetooth_adapter.h
index 5dcf12f54bd9104841fab75bb62fed94b0ffb951..945e39aa0392e5cb7f252391222120d0017a32d8 100644
--- a/device/bluetooth/bluetooth_adapter.h
+++ b/device/bluetooth/bluetooth_adapter.h
@@ -260,6 +260,11 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapter
// is only considered present if the address has been obtained.
virtual bool IsPresent() const = 0;
+#if defined(OS_CHROMEOS)
+ // Disables Bluetooth completely without shutting it down.
+ virtual void SetDisabled(bool disabled);
scheib 2016/04/11 23:27:11 Make pure virtual so that we know this is implemen
Ivan Šandrk 2016/04/12 17:31:11 Done.
+#endif
+
// Indicates whether the adapter radio is powered.
virtual bool IsPowered() const = 0;
« no previous file with comments | « chrome/chrome_browser_chromeos.gypi ('k') | device/bluetooth/bluetooth_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698