| Index: components/cryptauth/cryptauth_device_manager.cc
|
| diff --git a/components/cryptauth/cryptauth_device_manager.cc b/components/cryptauth/cryptauth_device_manager.cc
|
| index 3c7a3cf578973dbb848966e0bb18f3c698103934..0fa6a825e5ffe02728812f02d36dd642d6b22ef3 100644
|
| --- a/components/cryptauth/cryptauth_device_manager.cc
|
| +++ b/components/cryptauth/cryptauth_device_manager.cc
|
| @@ -419,10 +419,22 @@ void CryptAuthDeviceManager::OnGetMyDevicesSuccess(
|
| const GetMyDevicesResponse& response) {
|
| // Update the synced devices stored in the user's prefs.
|
| std::unique_ptr<base::ListValue> devices_as_list(new base::ListValue());
|
| +
|
| + if (!response.devices().empty())
|
| + PA_LOG(INFO) << "Devices were successfully synced.";
|
| +
|
| for (const auto& device : response.devices()) {
|
| - devices_as_list->Append(UnlockKeyToDictionary(device));
|
| + std::unique_ptr<base::DictionaryValue> device_dictionary =
|
| + UnlockKeyToDictionary(device);
|
| +
|
| + const std::string& device_name = device.has_friendly_device_name()
|
| + ? device.friendly_device_name()
|
| + : "[unknown]";
|
| + PA_LOG(INFO) << "Synced device '" << device_name
|
| + << "': " << *device_dictionary;
|
| +
|
| + devices_as_list->Append(std::move(device_dictionary));
|
| }
|
| - PA_LOG(INFO) << "Devices Synced:\n" << *devices_as_list;
|
|
|
| bool unlock_keys_changed = !devices_as_list->Equals(
|
| pref_service_->GetList(prefs::kCryptAuthDeviceSyncUnlockKeys));
|
|
|