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

Unified Diff: components/proximity_auth/proximity_auth_system.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/proximity_auth_system.cc
diff --git a/components/proximity_auth/proximity_auth_system.cc b/components/proximity_auth/proximity_auth_system.cc
index 9be36374506ea162b95678f26f8fab5e9bff44ab..b11506667b4b06bdf6f77e8bf97a3051c6cf2d7a 100644
--- a/components/proximity_auth/proximity_auth_system.cc
+++ b/components/proximity_auth/proximity_auth_system.cc
@@ -56,7 +56,7 @@ void ProximityAuthSystem::Stop() {
void ProximityAuthSystem::SetRemoteDevicesForUser(
const AccountId& account_id,
- const RemoteDeviceList& remote_devices) {
+ const cryptauth::RemoteDeviceList& remote_devices) {
remote_devices_map_[account_id] = remote_devices;
if (started_) {
const AccountId& focused_account_id =
@@ -66,10 +66,10 @@ void ProximityAuthSystem::SetRemoteDevicesForUser(
}
}
-RemoteDeviceList ProximityAuthSystem::GetRemoteDevicesForUser(
+cryptauth::RemoteDeviceList ProximityAuthSystem::GetRemoteDevicesForUser(
const AccountId& account_id) const {
if (remote_devices_map_.find(account_id) == remote_devices_map_.end())
- return RemoteDeviceList();
+ return cryptauth::RemoteDeviceList();
return remote_devices_map_.at(account_id);
}
@@ -153,7 +153,7 @@ void ProximityAuthSystem::OnFocusedUserChanged(const AccountId& account_id) {
// TODO(tengs): We currently assume each user has only one RemoteDevice, so we
// can simply take the first item in the list.
- RemoteDevice remote_device = remote_devices_map_[account_id][0];
+ cryptauth::RemoteDevice remote_device = remote_devices_map_[account_id][0];
if (!suspended_) {
PA_LOG(INFO) << "Creating RemoteDeviceLifeCycle for focused user: "
<< account_id.Serialize();
« no previous file with comments | « components/proximity_auth/proximity_auth_system.h ('k') | components/proximity_auth/proximity_auth_system_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698