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

Side by Side Diff: chrome/browser/ui/views/app_list/win/app_list_service_win.h

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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_VIEWS_APP_LIST_WIN_APP_LIST_SERVICE_WIN_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_APP_LIST_WIN_APP_LIST_SERVICE_WIN_H_
6 #define CHROME_BROWSER_UI_VIEWS_APP_LIST_WIN_APP_LIST_SERVICE_WIN_H_ 6 #define CHROME_BROWSER_UI_VIEWS_APP_LIST_WIN_APP_LIST_SERVICE_WIN_H_
7 7
8 #include <memory>
9
8 #include "base/callback.h" 10 #include "base/callback.h"
9 #include "base/macros.h" 11 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "chrome/browser/ui/app_list/app_list_service_views.h" 12 #include "chrome/browser/ui/app_list/app_list_service_views.h"
12 13
13 class ActivationTrackerWin; 14 class ActivationTrackerWin;
14 15
15 namespace base { 16 namespace base {
16 template <typename T> struct DefaultSingletonTraits; 17 template <typename T> struct DefaultSingletonTraits;
17 } 18 }
18 19
19 class AppListServiceWin : public AppListServiceViews { 20 class AppListServiceWin : public AppListServiceViews {
20 public: 21 public:
(...skipping 23 matching lines...) Expand all
44 bool IsWarmupNeeded(); 45 bool IsWarmupNeeded();
45 void ScheduleWarmup(); 46 void ScheduleWarmup();
46 47
47 // Loads the profile last used with the app list and populates the view from 48 // Loads the profile last used with the app list and populates the view from
48 // it without showing it so that the next show is faster. Does nothing if the 49 // it without showing it so that the next show is faster. Does nothing if the
49 // view already exists, or another profile is in the middle of being loaded to 50 // view already exists, or another profile is in the middle of being loaded to
50 // be shown. 51 // be shown.
51 void LoadProfileForWarmup(); 52 void LoadProfileForWarmup();
52 void OnLoadProfileForWarmup(Profile* initial_profile); 53 void OnLoadProfileForWarmup(Profile* initial_profile);
53 54
54 scoped_ptr<ActivationTrackerWin> activation_tracker_; 55 std::unique_ptr<ActivationTrackerWin> activation_tracker_;
55 56
56 base::Closure next_paint_callback_; 57 base::Closure next_paint_callback_;
57 58
58 DISALLOW_COPY_AND_ASSIGN(AppListServiceWin); 59 DISALLOW_COPY_AND_ASSIGN(AppListServiceWin);
59 }; 60 };
60 61
61 #endif // CHROME_BROWSER_UI_VIEWS_APP_LIST_WIN_APP_LIST_SERVICE_WIN_H_ 62 #endif // CHROME_BROWSER_UI_VIEWS_APP_LIST_WIN_APP_LIST_SERVICE_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698