| OLD | NEW |
| 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 Loading... |
| 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) |
| OLD | NEW |