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

Side by Side Diff: chrome/browser/ui/views/app_list/win/app_list_service_win.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 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 #include "chrome/browser/ui/views/app_list/win/app_list_service_win.h" 5 #include "chrome/browser/ui/views/app_list/win/app_list_service_win.h"
6 6
7 #include <dwmapi.h> 7 #include <dwmapi.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <sstream> 10 #include <sstream>
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 238
239 } // namespace 239 } // namespace
240 240
241 // static 241 // static
242 AppListServiceWin* AppListServiceWin::GetInstance() { 242 AppListServiceWin* AppListServiceWin::GetInstance() {
243 return base::Singleton<AppListServiceWin, 243 return base::Singleton<AppListServiceWin,
244 base::LeakySingletonTraits<AppListServiceWin>>::get(); 244 base::LeakySingletonTraits<AppListServiceWin>>::get();
245 } 245 }
246 246
247 AppListServiceWin::AppListServiceWin() 247 AppListServiceWin::AppListServiceWin()
248 : AppListServiceViews(scoped_ptr<AppListControllerDelegate>( 248 : AppListServiceViews(std::unique_ptr<AppListControllerDelegate>(
249 new AppListControllerDelegateWin(this))) { 249 new AppListControllerDelegateWin(this))) {}
250 }
251 250
252 AppListServiceWin::~AppListServiceWin() { 251 AppListServiceWin::~AppListServiceWin() {
253 } 252 }
254 253
255 void AppListServiceWin::ShowForProfile(Profile* requested_profile) { 254 void AppListServiceWin::ShowForProfile(Profile* requested_profile) {
256 AppListServiceViews::ShowForProfile(requested_profile); 255 AppListServiceViews::ShowForProfile(requested_profile);
257 256
258 #if defined(GOOGLE_CHROME_BUILD) 257 #if defined(GOOGLE_CHROME_BUILD)
259 content::BrowserThread::PostBlockingPoolTask( 258 content::BrowserThread::PostBlockingPoolTask(
260 FROM_HERE, base::Bind(SetDidRunForNDayActiveStats)); 259 FROM_HERE, base::Bind(SetDidRunForNDayActiveStats));
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 activation_tracker_.reset(new ActivationTrackerWin(this)); 399 activation_tracker_.reset(new ActivationTrackerWin(this));
401 } 400 }
402 401
403 void AppListServiceWin::OnViewDismissed() { 402 void AppListServiceWin::OnViewDismissed() {
404 activation_tracker_->OnViewHidden(); 403 activation_tracker_->OnViewHidden();
405 } 404 }
406 405
407 void AppListServiceWin::MoveNearCursor(app_list::AppListView* view) { 406 void AppListServiceWin::MoveNearCursor(app_list::AppListView* view) {
408 AppListWin::MoveNearCursor(view); 407 AppListWin::MoveNearCursor(view);
409 } 408 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698