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..1c811e309a7df4a4bf0631b0df71bab4488351ec 100644 |
--- a/components/cryptauth/cryptauth_device_manager.cc |
+++ b/components/cryptauth/cryptauth_device_manager.cc |
@@ -419,10 +419,20 @@ 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()); |
+ |
+ PA_LOG(INFO) << "Devices were successfully synced."; |
Kyle Horimoto
2017/06/08 20:43:03
nit: Only print if !responses.devices().empty().
Ryan Hansberry
2017/06/08 22:13:59
Done.
|
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)); |