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

Unified Diff: chrome/browser/ui/webui/ntp/app_launcher_handler.cc

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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/ntp/app_launcher_handler.cc
diff --git a/chrome/browser/ui/webui/ntp/app_launcher_handler.cc b/chrome/browser/ui/webui/ntp/app_launcher_handler.cc
index ac4c6344c95bc330458876ae655345436b478bac..22f72747000333d05beb94075716f7d634dc2837 100644
--- a/chrome/browser/ui/webui/ntp/app_launcher_handler.cc
+++ b/chrome/browser/ui/webui/ntp/app_launcher_handler.cc
@@ -339,7 +339,7 @@ void AppLauncherHandler::OnExtensionLoaded(
if (!ShouldShow(extension))
return;
- scoped_ptr<base::DictionaryValue> app_info(GetAppInfo(extension));
+ std::unique_ptr<base::DictionaryValue> app_info(GetAppInfo(extension));
if (!app_info.get())
return;
@@ -719,7 +719,7 @@ void AppLauncherHandler::HandleGenerateAppForLink(const base::ListValue* args) {
return;
}
- scoped_ptr<AppInstallInfo> install_info(new AppInstallInfo());
+ std::unique_ptr<AppInstallInfo> install_info(new AppInstallInfo());
install_info->title = title;
install_info->app_url = launch_url;
install_info->page_ordinal = page_ordinal;
@@ -755,9 +755,9 @@ void AppLauncherHandler::HandlePageSelected(const base::ListValue* args) {
}
void AppLauncherHandler::OnFaviconForApp(
- scoped_ptr<AppInstallInfo> install_info,
+ std::unique_ptr<AppInstallInfo> install_info,
const favicon_base::FaviconImageResult& image_result) {
- scoped_ptr<WebApplicationInfo> web_app(new WebApplicationInfo());
+ std::unique_ptr<WebApplicationInfo> web_app(new WebApplicationInfo());
web_app->title = install_info->title;
web_app->app_url = install_info->app_url;
@@ -870,7 +870,7 @@ void AppLauncherHandler::AppRemoved(const Extension* extension,
if (!ShouldShow(extension))
return;
- scoped_ptr<base::DictionaryValue> app_info(GetAppInfo(extension));
+ std::unique_ptr<base::DictionaryValue> app_info(GetAppInfo(extension));
if (!app_info.get())
return;
« no previous file with comments | « chrome/browser/ui/webui/ntp/app_launcher_handler.h ('k') | chrome/browser/ui/webui/ntp/favicon_webui_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698