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

Unified Diff: chrome/browser/ui/app_list/app_list_service_mac.mm

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_service_mac.mm
diff --git a/chrome/browser/ui/app_list/app_list_service_mac.mm b/chrome/browser/ui/app_list/app_list_service_mac.mm
index 6314ce204593d67802f06ede39763ee5d675dbcd..a6f351cd653b4e4aa3b6b26e0eec67ca42631689 100644
--- a/chrome/browser/ui/app_list/app_list_service_mac.mm
+++ b/chrome/browser/ui/app_list/app_list_service_mac.mm
@@ -91,9 +91,10 @@ const NSTimeInterval kAnimationDuration = 0.2;
// Distance towards the screen edge that the app list moves from when showing.
const CGFloat kDistanceMovedOnShow = 20;
-scoped_ptr<web_app::ShortcutInfo> GetAppListShortcutInfo(
+std::unique_ptr<web_app::ShortcutInfo> GetAppListShortcutInfo(
const base::FilePath& profile_path) {
- scoped_ptr<web_app::ShortcutInfo> shortcut_info(new web_app::ShortcutInfo);
+ std::unique_ptr<web_app::ShortcutInfo> shortcut_info(
+ new web_app::ShortcutInfo);
version_info::Channel channel = chrome::GetChannel();
if (channel == version_info::Channel::CANARY) {
shortcut_info->title =
@@ -113,7 +114,7 @@ scoped_ptr<web_app::ShortcutInfo> GetAppListShortcutInfo(
void CreateAppListShim(const base::FilePath& profile_path) {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
WebApplicationInfo web_app_info;
- scoped_ptr<web_app::ShortcutInfo> shortcut_info =
+ std::unique_ptr<web_app::ShortcutInfo> shortcut_info =
GetAppListShortcutInfo(profile_path);
ResourceBundle& resource_bundle = ResourceBundle::GetSharedInstance();
« no previous file with comments | « chrome/browser/ui/app_list/app_list_service_mac.h ('k') | chrome/browser/ui/app_list/app_list_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698