Index: components/signin/core/browser/about_signin_internals.cc |
diff --git a/components/signin/core/browser/about_signin_internals.cc b/components/signin/core/browser/about_signin_internals.cc |
index ec1595333f61bebd0c7f2e8aa3c648669c3bf053..e1ac32ceb97305da0bba8933d933d011ce668a93 100644 |
--- a/components/signin/core/browser/about_signin_internals.cc |
+++ b/components/signin/core/browser/about_signin_internals.cc |
@@ -664,15 +664,16 @@ AboutSigninInternals::SigninStatus::ToValue( |
token_service->GetAccounts(); |
if(accounts_in_token_service.size() == 0) { |
- base::DictionaryValue* no_token_entry = new base::DictionaryValue(); |
+ std::unique_ptr<base::DictionaryValue> no_token_entry( |
+ new base::DictionaryValue()); |
no_token_entry->SetString("accountId", "No token in Token Service."); |
- account_info->Append(no_token_entry); |
+ account_info->Append(std::move(no_token_entry)); |
} |
for(const std::string& account_id : accounts_in_token_service) { |
- base::DictionaryValue* entry = new base::DictionaryValue(); |
+ std::unique_ptr<base::DictionaryValue> entry(new base::DictionaryValue()); |
entry->SetString("accountId", account_id); |
- account_info->Append(entry); |
+ account_info->Append(std::move(entry)); |
} |
return signin_status; |