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 08059b527de01956fae81f1534a3ab5b89e91d8c..6d43d563199ef82754b4738a5a433caea2323bf0 100644 |
--- a/components/arc/bluetooth/arc_bluetooth_bridge.cc |
+++ b/components/arc/bluetooth/arc_bluetooth_bridge.cc |
@@ -290,19 +290,15 @@ void ArcBluetoothBridge::OnAdapterInitialized( |
// register ourselves as an observer with it then. Since our adapter is |
// ready, we should register it now. |
if (!bluetooth_adapter_->HasObserver(this) && |
- arc_bridge_service()->bluetooth()->instance()) { |
+ arc_bridge_service()->bluetooth()->has_instance()) { |
bluetooth_adapter_->AddObserver(this); |
} |
} |
void ArcBluetoothBridge::OnInstanceReady() { |
mojom::BluetoothInstance* bluetooth_instance = |
- arc_bridge_service()->bluetooth()->instance(); |
- if (!bluetooth_instance) { |
- LOG(ERROR) << "OnBluetoothInstanceReady called, " |
- << "but no bluetooth instance found"; |
- return; |
- } |
+ arc_bridge_service()->bluetooth()->GetInstanceForMethod("Init"); |
+ DCHECK(bluetooth_instance); |
bluetooth_instance->Init(binding_.CreateInterfacePtrAndBind()); |