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

Unified Diff: components/proximity_auth/remote_device_loader.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_loader.cc
diff --git a/components/proximity_auth/remote_device_loader.cc b/components/proximity_auth/remote_device_loader.cc
index 4b8b0965fa7a88f39ac5611698f9a241c9d2d2ab..c856cffd69634adf52d58734025265cec2ce921d 100644
--- a/components/proximity_auth/remote_device_loader.cc
+++ b/components/proximity_auth/remote_device_loader.cc
@@ -69,9 +69,10 @@ void RemoteDeviceLoader::OnPSKDerived(
// TODO(tengs): We assume that devices without a |bluetooth_address| field are
// BLE devices. Ideally, we should have a separate field for this information.
- RemoteDevice::BluetoothType bluetooth_type =
- unlock_key.bluetooth_address().empty() ? RemoteDevice::BLUETOOTH_LE
- : RemoteDevice::BLUETOOTH_CLASSIC;
+ cryptauth::RemoteDevice::BluetoothType bluetooth_type =
+ unlock_key.bluetooth_address().empty()
+ ? cryptauth::RemoteDevice::BLUETOOTH_LE
+ : cryptauth::RemoteDevice::BLUETOOTH_CLASSIC;
std::string bluetooth_address = unlock_key.bluetooth_address();
if (bluetooth_address.empty() && pref_manager_) {
@@ -84,7 +85,7 @@ void RemoteDeviceLoader::OnPSKDerived(
<< " is " << bluetooth_address;
}
- remote_devices_.push_back(RemoteDevice(
+ remote_devices_.push_back(cryptauth::RemoteDevice(
user_id_, unlock_key.friendly_device_name(), unlock_key.public_key(),
bluetooth_type, bluetooth_address, psk, std::string()));
« no previous file with comments | « components/proximity_auth/remote_device_loader.h ('k') | components/proximity_auth/remote_device_loader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698