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

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

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 years, 3 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 <sstream> 8 #include <sstream>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 relaunch.GetCommandLineString(), app_name, hwnd); 242 relaunch.GetCommandLineString(), app_name, hwnd);
243 ::SetWindowText(hwnd, app_name.c_str()); 243 ::SetWindowText(hwnd, app_name.c_str());
244 base::string16 icon_path = GetAppListIconPath(); 244 base::string16 icon_path = GetAppListIconPath();
245 ui::win::SetAppIconForWindow(icon_path, hwnd); 245 ui::win::SetAppIconForWindow(icon_path, hwnd);
246 } 246 }
247 247
248 } // namespace 248 } // namespace
249 249
250 // static 250 // static
251 AppListServiceWin* AppListServiceWin::GetInstance() { 251 AppListServiceWin* AppListServiceWin::GetInstance() {
252 return Singleton<AppListServiceWin, 252 return base::Singleton<AppListServiceWin,
253 LeakySingletonTraits<AppListServiceWin> >::get(); 253 base::LeakySingletonTraits<AppListServiceWin>>::get();
254 } 254 }
255 255
256 AppListServiceWin::AppListServiceWin() 256 AppListServiceWin::AppListServiceWin()
257 : AppListServiceViews(scoped_ptr<AppListControllerDelegate>( 257 : AppListServiceViews(scoped_ptr<AppListControllerDelegate>(
258 new AppListControllerDelegateWin(this))) { 258 new AppListControllerDelegateWin(this))) {
259 } 259 }
260 260
261 AppListServiceWin::~AppListServiceWin() { 261 AppListServiceWin::~AppListServiceWin() {
262 } 262 }
263 263
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 activation_tracker_.reset(new ActivationTrackerWin(this)); 409 activation_tracker_.reset(new ActivationTrackerWin(this));
410 } 410 }
411 411
412 void AppListServiceWin::OnViewDismissed() { 412 void AppListServiceWin::OnViewDismissed() {
413 activation_tracker_->OnViewHidden(); 413 activation_tracker_->OnViewHidden();
414 } 414 }
415 415
416 void AppListServiceWin::MoveNearCursor(app_list::AppListView* view) { 416 void AppListServiceWin::MoveNearCursor(app_list::AppListView* view) {
417 AppListWin::MoveNearCursor(view); 417 AppListWin::MoveNearCursor(view);
418 } 418 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698