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

Unified Diff: components/arc/bluetooth/arc_bluetooth_bridge.cc

Issue 2172063002: arc: bluetooth: Don't unset bluetooth_adapter_ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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 | « components/arc/bluetooth/arc_bluetooth_bridge.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/bluetooth/arc_bluetooth_bridge.cc
diff --git a/components/arc/bluetooth/arc_bluetooth_bridge.cc b/components/arc/bluetooth/arc_bluetooth_bridge.cc
index 6a2df7fa71ae2ce901c36314884e3a9c5c9ca5bd..4e4ca1252e54781fab526bcabd7109b07c921bb5 100644
--- a/components/arc/bluetooth/arc_bluetooth_bridge.cc
+++ b/components/arc/bluetooth/arc_bluetooth_bridge.cc
@@ -190,17 +190,6 @@ void ArcBluetoothBridge::OnInstanceReady() {
bluetooth_instance->Init(binding_.CreateInterfacePtrAndBind());
}
-void ArcBluetoothBridge::AdapterPresentChanged(BluetoothAdapter* adapter,
- bool present) {
- DCHECK(CalledOnValidThread());
-
- // If the adapter goes away, remove ourselves as an observer.
- if (!present && adapter == bluetooth_adapter_) {
- adapter->RemoveObserver(this);
- bluetooth_adapter_ = nullptr;
- }
-}
-
void ArcBluetoothBridge::AdapterPoweredChanged(BluetoothAdapter* adapter,
bool powered) {
if (!HasBluetoothInstance())
« no previous file with comments | « components/arc/bluetooth/arc_bluetooth_bridge.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698