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

Unified Diff: chrome/browser/ui/app_list/app_list_view_delegate.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/app_list/app_list_view_delegate.cc
diff --git a/chrome/browser/ui/app_list/app_list_view_delegate.cc b/chrome/browser/ui/app_list/app_list_view_delegate.cc
index 69486c21a3983732c5087a68a5f16521a9d853bf..8b5de307b8b51f695d5dc8ded30efdf174d943ca 100644
--- a/chrome/browser/ui/app_list/app_list_view_delegate.cc
+++ b/chrome/browser/ui/app_list/app_list_view_delegate.cc
@@ -103,7 +103,7 @@ const int kAutoLaunchDefaultTimeoutMilliSec = 50;
void CreateShortcutInWebAppDir(
const base::FilePath& app_data_dir,
base::Callback<void(const base::FilePath&)> callback,
- scoped_ptr<web_app::ShortcutInfo> info) {
+ std::unique_ptr<web_app::ShortcutInfo> info) {
content::BrowserThread::PostTaskAndReplyWithResult(
content::BrowserThread::FILE, FROM_HERE,
base::Bind(web_app::CreateShortcutInWebAppDir, app_data_dir,
@@ -353,7 +353,8 @@ void AppListViewDelegate::SetUpCustomLauncherPages() {
std::string extension_id = it->host();
apps::CustomLauncherPageContents* page_contents =
new apps::CustomLauncherPageContents(
- scoped_ptr<extensions::AppDelegate>(new ChromeAppDelegate(false)),
+ std::unique_ptr<extensions::AppDelegate>(
+ new ChromeAppDelegate(false)),
extension_id);
page_contents->Initialize(profile_, *it);
custom_page_contents_.push_back(page_contents);
« no previous file with comments | « chrome/browser/ui/app_list/app_list_view_delegate.h ('k') | chrome/browser/ui/app_list/arc/arc_app_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698