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

Unified Diff: components/proximity_auth/remote_device_life_cycle_impl.cc

Issue 2560713002: Move RemoteDevice from //components/proximity_auth to //components/cryptauth so that it can be easi… (Closed)
Patch Set: Add cryptauth dependency. Created 4 years 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 287a4729fb09067f9d8f919adeb4d504ded3fc68..429377275521c2d809f01dc46b79725fdb31d0cd 100644
--- a/components/proximity_auth/remote_device_life_cycle_impl.cc
+++ b/components/proximity_auth/remote_device_life_cycle_impl.cc
@@ -41,7 +41,7 @@ const int kAuthenticationRecoveryTimeSeconds = 10;
} // namespace
RemoteDeviceLifeCycleImpl::RemoteDeviceLifeCycleImpl(
- const RemoteDevice& remote_device,
+ const cryptauth::RemoteDevice& remote_device,
ProximityAuthClient* proximity_auth_client)
: remote_device_(remote_device),
proximity_auth_client_(proximity_auth_client),
@@ -60,7 +60,7 @@ void RemoteDeviceLifeCycleImpl::Start() {
FindConnection();
}
-RemoteDevice RemoteDeviceLifeCycleImpl::GetRemoteDevice() const {
+cryptauth::RemoteDevice RemoteDeviceLifeCycleImpl::GetRemoteDevice() const {
return remote_device_;
}
@@ -82,7 +82,7 @@ void RemoteDeviceLifeCycleImpl::RemoveObserver(Observer* observer) {
std::unique_ptr<ConnectionFinder>
RemoteDeviceLifeCycleImpl::CreateConnectionFinder() {
- if (remote_device_.bluetooth_type == RemoteDevice::BLUETOOTH_LE) {
+ if (remote_device_.bluetooth_type == cryptauth::RemoteDevice::BLUETOOTH_LE) {
return base::MakeUnique<BluetoothLowEnergyConnectionFinder>(
remote_device_, kBLESmartLockServiceUUID,
BluetoothLowEnergyConnectionFinder::FinderStrategy::FIND_PAIRED_DEVICE,

Powered by Google App Engine
This is Rietveld 408576698