Index: components/proximity_auth/remote_device_life_cycle_impl.cc |
diff --git a/components/proximity_auth/remote_device_life_cycle_impl.cc b/components/proximity_auth/remote_device_life_cycle_impl.cc |
index 0661088b13709e29cb4509abfc3cf395249c7810..54e4b71f1eee943b7e4e9607fb24a67d2e93634c 100644 |
--- a/components/proximity_auth/remote_device_life_cycle_impl.cc |
+++ b/components/proximity_auth/remote_device_life_cycle_impl.cc |
@@ -62,6 +62,14 @@ cryptauth::RemoteDevice RemoteDeviceLifeCycleImpl::GetRemoteDevice() const { |
return remote_device_; |
} |
+cryptauth::Connection* RemoteDeviceLifeCycleImpl::GetConnection() const { |
+ if (connection_) |
+ return connection_.get(); |
+ if (messenger_) |
+ return messenger_->GetConnection(); |
+ return nullptr; |
+} |
+ |
RemoteDeviceLifeCycle::State RemoteDeviceLifeCycleImpl::GetState() const { |
return state_; |
} |