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

Side by Side Diff: chrome/browser/ui/ash/app_list/app_list_service_ash.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/ash/app_list/app_list_service_ash.h" 5 #include "chrome/browser/ui/ash/app_list/app_list_service_ash.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/ui/app_list/start_page_service.h" 11 #include "chrome/browser/ui/app_list/start_page_service.h"
12 #include "chrome/browser/ui/ash/app_list/app_list_controller_ash.h" 12 #include "chrome/browser/ui/ash/app_list/app_list_controller_ash.h"
13 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" 13 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h"
14 #include "ui/app_list/app_list_switches.h" 14 #include "ui/app_list/app_list_switches.h"
15 #include "ui/app_list/views/app_list_main_view.h" 15 #include "ui/app_list/views/app_list_main_view.h"
16 #include "ui/app_list/views/app_list_view.h" 16 #include "ui/app_list/views/app_list_view.h"
17 #include "ui/app_list/views/contents_view.h" 17 #include "ui/app_list/views/contents_view.h"
18 18
19 // static 19 // static
20 AppListServiceAsh* AppListServiceAsh::GetInstance() { 20 AppListServiceAsh* AppListServiceAsh::GetInstance() {
21 return Singleton<AppListServiceAsh, 21 return base::Singleton<AppListServiceAsh,
22 LeakySingletonTraits<AppListServiceAsh> >::get(); 22 base::LeakySingletonTraits<AppListServiceAsh>>::get();
23 } 23 }
24 24
25 AppListServiceAsh::AppListServiceAsh() 25 AppListServiceAsh::AppListServiceAsh()
26 : controller_delegate_(new AppListControllerDelegateAsh()) { 26 : controller_delegate_(new AppListControllerDelegateAsh()) {
27 } 27 }
28 28
29 AppListServiceAsh::~AppListServiceAsh() { 29 AppListServiceAsh::~AppListServiceAsh() {
30 } 30 }
31 31
32 void AppListServiceAsh::ShowAndSwitchToState( 32 void AppListServiceAsh::ShowAndSwitchToState(
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 return AppListServiceAsh::GetInstance(); 148 return AppListServiceAsh::GetInstance();
149 } 149 }
150 150
151 // static 151 // static
152 void AppListService::InitAll(Profile* initial_profile, 152 void AppListService::InitAll(Profile* initial_profile,
153 const base::FilePath& profile_path) { 153 const base::FilePath& profile_path) {
154 AppListServiceAsh::GetInstance()->Init(initial_profile); 154 AppListServiceAsh::GetInstance()->Init(initial_profile);
155 } 155 }
156 156
157 #endif // !defined(OS_WIN) 157 #endif // !defined(OS_WIN)
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/app_list/app_list_service_ash.h ('k') | chrome/browser/ui/ash/app_sync_ui_state_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698