| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/proximity_auth/remote_device_loader.h" | 5 #include "components/proximity_auth/remote_device_loader.h" |
| 6 | 6 |
| 7 #include <algorithm> |
| 7 #include <utility> | 8 #include <utility> |
| 8 | 9 |
| 9 #include "base/base64url.h" | 10 #include "base/base64url.h" |
| 10 #include "base/bind.h" | 11 #include "base/bind.h" |
| 11 #include "components/proximity_auth/cryptauth/secure_message_delegate.h" | 12 #include "components/proximity_auth/cryptauth/secure_message_delegate.h" |
| 12 #include "components/proximity_auth/logging/logging.h" | 13 #include "components/proximity_auth/logging/logging.h" |
| 13 #include "components/proximity_auth/proximity_auth_pref_manager.h" | 14 #include "components/proximity_auth/proximity_auth_pref_manager.h" |
| 14 | 15 |
| 15 namespace proximity_auth { | 16 namespace proximity_auth { |
| 16 | 17 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 86 |
| 86 remote_devices_.push_back(RemoteDevice( | 87 remote_devices_.push_back(RemoteDevice( |
| 87 user_id_, unlock_key.friendly_device_name(), unlock_key.public_key(), | 88 user_id_, unlock_key.friendly_device_name(), unlock_key.public_key(), |
| 88 bluetooth_type, bluetooth_address, psk, std::string())); | 89 bluetooth_type, bluetooth_address, psk, std::string())); |
| 89 | 90 |
| 90 if (!remaining_unlock_keys_.size()) | 91 if (!remaining_unlock_keys_.size()) |
| 91 callback_.Run(remote_devices_); | 92 callback_.Run(remote_devices_); |
| 92 } | 93 } |
| 93 | 94 |
| 94 } // namespace proximity_auth | 95 } // namespace proximity_auth |
| OLD | NEW |