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

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: code fix Created 4 years, 8 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: device/bluetooth/bluetooth_adapter.h
diff --git a/device/bluetooth/bluetooth_adapter.h b/device/bluetooth/bluetooth_adapter.h
index 5dcf12f54bd9104841fab75bb62fed94b0ffb951..dcf76efbb3fe0533af46b6eaddc4d1a2af0462af 100644
--- a/device/bluetooth/bluetooth_adapter.h
+++ b/device/bluetooth/bluetooth_adapter.h
@@ -260,6 +260,9 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapter
// is only considered present if the address has been obtained.
virtual bool IsPresent() const = 0;
+ // Disables Bluetooth completely without shutting it down.
+ virtual void SetDisabled(bool disabled) = 0;
+
// Indicates whether the adapter radio is powered.
virtual bool IsPowered() const = 0;

Powered by Google App Engine
This is Rietveld 408576698