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

Unified Diff: components/proximity_auth/remote_device_life_cycle_impl.cc

Issue 2845433003: [EasyUnlock] Update ProximityMonitor to only check for RSSI proximity. (Closed)
Patch Set: fixes Created 3 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: 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_;
}
« no previous file with comments | « components/proximity_auth/remote_device_life_cycle_impl.h ('k') | components/proximity_auth/unlock_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698