Index: components/cryptauth/cryptauth_device_manager_unittest.cc |
diff --git a/components/cryptauth/cryptauth_device_manager_unittest.cc b/components/cryptauth/cryptauth_device_manager_unittest.cc |
index 6c6af53928a401e1fd0ad3064710fd4e46ffd7f8..7dcd284349e36fc1c798a05b0ab1df24763c665d 100644 |
--- a/components/cryptauth/cryptauth_device_manager_unittest.cc |
+++ b/components/cryptauth/cryptauth_device_manager_unittest.cc |
@@ -383,11 +383,13 @@ class CryptAuthDeviceManagerTest |
CryptAuthDeviceManager::RegisterPrefs(pref_service_.registry()); |
pref_service_.SetUserPref( |
prefs::kCryptAuthDeviceSyncIsRecoveringFromFailure, |
- new base::Value(false)); |
- pref_service_.SetUserPref(prefs::kCryptAuthDeviceSyncLastSyncTimeSeconds, |
- new base::Value(kLastSyncTimeSeconds)); |
- pref_service_.SetUserPref(prefs::kCryptAuthDeviceSyncReason, |
- new base::Value(INVOCATION_REASON_UNKNOWN)); |
+ base::MakeUnique<base::Value>(false)); |
+ pref_service_.SetUserPref( |
+ prefs::kCryptAuthDeviceSyncLastSyncTimeSeconds, |
+ base::MakeUnique<base::Value>(kLastSyncTimeSeconds)); |
+ pref_service_.SetUserPref( |
+ prefs::kCryptAuthDeviceSyncReason, |
+ base::MakeUnique<base::Value>(INVOCATION_REASON_UNKNOWN)); |
std::unique_ptr<base::DictionaryValue> device_dictionary( |
new base::DictionaryValue()); |