| Index: chrome/browser/signin/signin_manager_unittest.cc
|
| diff --git a/chrome/browser/signin/signin_manager_unittest.cc b/chrome/browser/signin/signin_manager_unittest.cc
|
| index a8b3e883183a450ac4aaf7922f76cfde246b3f5c..22b8bf3f16883e28263ac93d38e391af68475a42 100644
|
| --- a/chrome/browser/signin/signin_manager_unittest.cc
|
| +++ b/chrome/browser/signin/signin_manager_unittest.cc
|
| @@ -11,6 +11,7 @@
|
| #include "base/bind.h"
|
| #include "base/bind_helpers.h"
|
| #include "base/compiler_specific.h"
|
| +#include "base/memory/ptr_util.h"
|
| #include "base/run_loop.h"
|
| #include "base/strings/stringprintf.h"
|
| #include "chrome/browser/browser_process.h"
|
| @@ -505,11 +506,11 @@ TEST_F(SigninManagerTest, GaiaIdMigration) {
|
| ListPrefUpdate update(client_prefs,
|
| AccountTrackerService::kAccountInfoPref);
|
| update->Clear();
|
| - base::DictionaryValue* dict = new base::DictionaryValue();
|
| - update->Append(dict);
|
| + auto dict = base::MakeUnique<base::DictionaryValue>();
|
| dict->SetString("account_id", base::UTF8ToUTF16(email));
|
| dict->SetString("email", base::UTF8ToUTF16(email));
|
| dict->SetString("gaia", base::UTF8ToUTF16(gaia_id));
|
| + update->Append(std::move(dict));
|
|
|
| tracker->Shutdown();
|
| tracker->Initialize(signin_client());
|
| @@ -539,11 +540,11 @@ TEST_F(SigninManagerTest, VeryOldProfileGaiaIdMigration) {
|
| ListPrefUpdate update(client_prefs,
|
| AccountTrackerService::kAccountInfoPref);
|
| update->Clear();
|
| - base::DictionaryValue* dict = new base::DictionaryValue();
|
| - update->Append(dict);
|
| + auto dict = base::MakeUnique<base::DictionaryValue>();
|
| dict->SetString("account_id", base::UTF8ToUTF16(email));
|
| dict->SetString("email", base::UTF8ToUTF16(email));
|
| dict->SetString("gaia", base::UTF8ToUTF16(gaia_id));
|
| + update->Append(std::move(dict));
|
|
|
| tracker->Shutdown();
|
| tracker->Initialize(signin_client());
|
| @@ -574,11 +575,11 @@ TEST_F(SigninManagerTest, GaiaIdMigrationCrashInTheMiddle) {
|
| ListPrefUpdate update(client_prefs,
|
| AccountTrackerService::kAccountInfoPref);
|
| update->Clear();
|
| - base::DictionaryValue* dict = new base::DictionaryValue();
|
| - update->Append(dict);
|
| + auto dict = base::MakeUnique<base::DictionaryValue>();
|
| dict->SetString("account_id", base::UTF8ToUTF16(email));
|
| dict->SetString("email", base::UTF8ToUTF16(email));
|
| dict->SetString("gaia", base::UTF8ToUTF16(gaia_id));
|
| + update->Append(std::move(dict));
|
|
|
| tracker->Shutdown();
|
| tracker->Initialize(signin_client());
|
|
|