| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/chromeos/chrome_interface_factory.h" | 5 #include "chrome/browser/chromeos/chrome_interface_factory.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "ash/common/mojo_interface_factory.h" |
| 9 #include "ash/public/interfaces/wallpaper.mojom.h" | 10 #include "ash/public/interfaces/wallpaper.mojom.h" |
| 10 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
| 11 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 12 #include "base/threading/thread_checker.h" | 13 #include "base/threading/thread_checker.h" |
| 13 #include "base/threading/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
| 14 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/browser/profiles/profile_manager.h" | 16 #include "chrome/browser/profiles/profile_manager.h" |
| 16 #include "chrome/browser/ui/ash/app_list/app_list_presenter_service.h" | 17 #include "chrome/browser/ui/ash/app_list/app_list_presenter_service.h" |
| 18 #include "chrome/browser/ui/ash/ash_util.h" |
| 17 #include "chrome/browser/ui/ash/chrome_wallpaper_manager.h" | 19 #include "chrome/browser/ui/ash/chrome_wallpaper_manager.h" |
| 18 #include "chrome/browser/ui/ash/keyboard_ui_service.h" | 20 #include "chrome/browser/ui/ash/keyboard_ui_service.h" |
| 19 #include "chrome/browser/ui/ash/system_tray_client.h" | 21 #include "chrome/browser/ui/ash/system_tray_client.h" |
| 20 #include "chrome/browser/ui/browser_commands.h" | 22 #include "chrome/browser/ui/browser_commands.h" |
| 21 #include "chrome/browser/ui/browser_finder.h" | 23 #include "chrome/browser/ui/browser_finder.h" |
| 22 #include "content/public/common/mojo_shell_connection.h" | 24 #include "content/public/common/mojo_shell_connection.h" |
| 23 #include "mash/public/interfaces/launchable.mojom.h" | 25 #include "mash/public/interfaces/launchable.mojom.h" |
| 24 #include "mojo/public/cpp/bindings/binding_set.h" | 26 #include "mojo/public/cpp/bindings/binding_set.h" |
| 25 #include "services/shell/public/cpp/connection.h" | 27 #include "services/shell/public/cpp/connection.h" |
| 26 #include "services/shell/public/cpp/interface_registry.h" | 28 #include "services/shell/public/cpp/interface_registry.h" |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 FactoryImpl::AddFactory<keyboard::mojom::Keyboard>(registry, | 164 FactoryImpl::AddFactory<keyboard::mojom::Keyboard>(registry, |
| 163 main_thread_task_runner_); | 165 main_thread_task_runner_); |
| 164 FactoryImpl::AddFactory<mash::mojom::Launchable>(registry, | 166 FactoryImpl::AddFactory<mash::mojom::Launchable>(registry, |
| 165 main_thread_task_runner_); | 167 main_thread_task_runner_); |
| 166 FactoryImpl::AddFactory<ash::mojom::SystemTrayClient>( | 168 FactoryImpl::AddFactory<ash::mojom::SystemTrayClient>( |
| 167 registry, main_thread_task_runner_); | 169 registry, main_thread_task_runner_); |
| 168 FactoryImpl::AddFactory<ash::mojom::WallpaperManager>( | 170 FactoryImpl::AddFactory<ash::mojom::WallpaperManager>( |
| 169 registry, main_thread_task_runner_); | 171 registry, main_thread_task_runner_); |
| 170 FactoryImpl::AddFactory<app_list::mojom::AppListPresenter>( | 172 FactoryImpl::AddFactory<app_list::mojom::AppListPresenter>( |
| 171 registry, main_thread_task_runner_); | 173 registry, main_thread_task_runner_); |
| 174 |
| 175 // In classic ash, the browser process provides ash services to itself. |
| 176 if (!chrome::IsRunningInMash()) { |
| 177 ash::MojoInterfaceFactory::RegisterInterfaces(registry, |
| 178 main_thread_task_runner_); |
| 179 } |
| 180 |
| 172 return true; | 181 return true; |
| 173 } | 182 } |
| 174 | 183 |
| 175 } // namespace chromeos | 184 } // namespace chromeos |
| OLD | NEW |