Index: chrome/browser/ui/webui/chromeos/login/app_launch_splash_screen_handler.cc |
diff --git a/chrome/browser/ui/webui/chromeos/login/app_launch_splash_screen_handler.cc b/chrome/browser/ui/webui/chromeos/login/app_launch_splash_screen_handler.cc |
index 865ceac8d9f29b416167cc64049ea7cef77968ea..a24fa3412fdb0e8486218c96392ea3b7d2da3deb 100644 |
--- a/chrome/browser/ui/webui/chromeos/login/app_launch_splash_screen_handler.cc |
+++ b/chrome/browser/ui/webui/chromeos/login/app_launch_splash_screen_handler.cc |
@@ -85,10 +85,9 @@ void AppLaunchSplashScreenHandler::Show(const std::string& app_id) { |
data.SetBoolean("shortcutEnabled", |
!KioskAppManager::Get()->GetDisableBailoutShortcut()); |
- // |data| will take ownership of |app_info|. |
- base::DictionaryValue *app_info = new base::DictionaryValue(); |
- PopulateAppInfo(app_info); |
- data.Set("appInfo", app_info); |
+ auto app_info = base::MakeUnique<base::DictionaryValue>(); |
+ PopulateAppInfo(app_info.get()); |
+ data.Set("appInfo", std::move(app_info)); |
SetLaunchText(l10n_util::GetStringUTF8(GetProgressMessageFromState(state_))); |
ShowScreenWithData(kScreenId, &data); |