Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9283)

Unified Diff: chrome/browser/ui/webui/settings/profile_info_handler.cc

Issue 2957863005: Replace WrapUnique with MakeUnique (Closed)
Patch Set: fix syntax error Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/settings/profile_info_handler.cc
diff --git a/chrome/browser/ui/webui/settings/profile_info_handler.cc b/chrome/browser/ui/webui/settings/profile_info_handler.cc
index 220585d3972fa3af3abe612e74b6ca8526fa1af3..136bd0713d3aea46ae6ae68e3ee5443a5f9ddd12 100644
--- a/chrome/browser/ui/webui/settings/profile_info_handler.cc
+++ b/chrome/browser/ui/webui/settings/profile_info_handler.cc
@@ -204,10 +204,10 @@ ProfileInfoHandler::GetAccountNameAndIcon() const {
}
#endif // defined(OS_CHROMEOS)
- base::DictionaryValue* response = new base::DictionaryValue();
+ auto response = base::MakeUnique<base::DictionaryValue>();
response->SetString("name", name);
response->SetString("iconUrl", icon_url);
- return base::WrapUnique(response);
+ return response;
}
bool ProfileInfoHandler::IsProfileManagingSupervisedUsers() const {
« no previous file with comments | « chrome/browser/ui/webui/options/content_settings_handler.cc ('k') | chrome/browser/ui/webui/site_settings_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698