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

Unified Diff: device/bluetooth/bluetooth_adapter.cc

Issue 2223203002: arc: bluetooth: Add/Remove BT observer only when ARC is ready (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add HasObserver Created 4 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: device/bluetooth/bluetooth_adapter.cc
diff --git a/device/bluetooth/bluetooth_adapter.cc b/device/bluetooth/bluetooth_adapter.cc
index 7b30fad19ebd8a1f5ce5d300142767bf306fe234..d39a73adcef27eece593125009f3c215b84e75b5 100644
--- a/device/bluetooth/bluetooth_adapter.cc
+++ b/device/bluetooth/bluetooth_adapter.cc
@@ -55,6 +55,10 @@ void BluetoothAdapter::RemoveObserver(BluetoothAdapter::Observer* observer) {
observers_.RemoveObserver(observer);
}
+bool BluetoothAdapter::HasObserver(BluetoothAdapter::Observer* observer) {
+ return observers_.HasObserver(observer);
rkc 2016/08/08 23:53:33 Before this line, DCHECK(observer);
puthik_chromium 2016/08/09 00:08:57 Added. Actually, It would just return false if obs
+}
+
void BluetoothAdapter::StartDiscoverySession(
const DiscoverySessionCallback& callback,
const ErrorCallback& error_callback) {
« components/arc/bluetooth/arc_bluetooth_bridge.cc ('K') | « device/bluetooth/bluetooth_adapter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698