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

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: Made SetDisabled pure virtual 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..1b35de42fad3602431577a4d7173701cbb811f6b 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)
scheib 2016/04/12 19:20:39 Explain here why this is only ChromeOS.
Andrew T Wilson (Slow) 2016/04/13 13:55:11 Or just make it on all platforms - the API and imp
Ivan Šandrk 2016/04/13 17:19:04 Done.
Ivan Šandrk 2016/04/13 17:19:04 Made it available on all platforms.
scheib 2016/04/13 19:45:41 But not implemented there, thus the try job failur
Ivan Šandrk 2016/04/14 18:08:47 That's a very good point. My apologies for pushing
+ // Disables Bluetooth completely without shutting it down.
+ virtual void SetDisabled(bool disabled) = 0;
+#endif
+
// Indicates whether the adapter radio is powered.
virtual bool IsPowered() const = 0;

Powered by Google App Engine
This is Rietveld 408576698