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

Side by Side Diff: chrome/app/mash/embedded_services.cc

Issue 2852183002: Delete the tracing service (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « chrome/app/mash/DEPS ('k') | components/filesystem/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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/app/mash/embedded_services.h" 5 #include "chrome/app/mash/embedded_services.h"
6 6
7 #include "mash/catalog_viewer/catalog_viewer.h" 7 #include "mash/catalog_viewer/catalog_viewer.h"
8 #include "mash/catalog_viewer/public/interfaces/constants.mojom.h" 8 #include "mash/catalog_viewer/public/interfaces/constants.mojom.h"
9 #include "mash/common/config.h" 9 #include "mash/common/config.h"
10 #include "mash/quick_launch/public/interfaces/constants.mojom.h" 10 #include "mash/quick_launch/public/interfaces/constants.mojom.h"
11 #include "mash/quick_launch/quick_launch.h" 11 #include "mash/quick_launch/quick_launch.h"
12 #include "mash/session/public/interfaces/constants.mojom.h" 12 #include "mash/session/public/interfaces/constants.mojom.h"
13 #include "mash/session/session.h" 13 #include "mash/session/session.h"
14 #include "mash/task_viewer/public/interfaces/constants.mojom.h" 14 #include "mash/task_viewer/public/interfaces/constants.mojom.h"
15 #include "mash/task_viewer/task_viewer.h" 15 #include "mash/task_viewer/task_viewer.h"
16 #include "services/tracing/public/interfaces/constants.mojom.h"
17 #include "services/tracing/service.h"
18 #include "services/ui/ime/test_ime_driver/test_ime_application.h" 16 #include "services/ui/ime/test_ime_driver/test_ime_application.h"
19 #include "services/ui/public/interfaces/constants.mojom.h" 17 #include "services/ui/public/interfaces/constants.mojom.h"
20 #include "services/ui/service.h" 18 #include "services/ui/service.h"
21 19
22 #if defined(OS_CHROMEOS) 20 #if defined(OS_CHROMEOS)
23 #include "ash/autoclick/mus/autoclick_application.h" // nogncheck 21 #include "ash/autoclick/mus/autoclick_application.h" // nogncheck
24 #include "ash/mus/window_manager_application.h" // nogncheck 22 #include "ash/mus/window_manager_application.h" // nogncheck
25 #include "ash/public/interfaces/constants.mojom.h" // nogncheck 23 #include "ash/public/interfaces/constants.mojom.h" // nogncheck
26 #include "ash/touch_hud/mus/touch_hud_application.h" // nogncheck 24 #include "ash/touch_hud/mus/touch_hud_application.h" // nogncheck
27 #endif // defined(OS_CHROMEOS) 25 #endif // defined(OS_CHROMEOS)
28 26
29 #if defined(OS_LINUX) && !defined(OS_ANDROID) 27 #if defined(OS_LINUX) && !defined(OS_ANDROID)
30 #include "components/font_service/font_service_app.h" 28 #include "components/font_service/font_service_app.h"
31 #endif // defined(OS_LINUX) && !defined(OS_ANDROID) 29 #endif // defined(OS_LINUX) && !defined(OS_ANDROID)
32 30
33 std::unique_ptr<service_manager::Service> CreateEmbeddedMashService( 31 std::unique_ptr<service_manager::Service> CreateEmbeddedMashService(
34 const std::string& service_name) { 32 const std::string& service_name) {
35 #if defined(OS_CHROMEOS) 33 #if defined(OS_CHROMEOS)
36 if (service_name == ash::mojom::kServiceName) { 34 if (service_name == ash::mojom::kServiceName) {
37 const bool show_primary_host_on_connect = true; 35 const bool show_primary_host_on_connect = true;
38 return base::WrapUnique( 36 return base::WrapUnique(
39 new ash::mus::WindowManagerApplication(show_primary_host_on_connect)); 37 new ash::mus::WindowManagerApplication(show_primary_host_on_connect));
40 } 38 }
41 if (service_name == "accessibility_autoclick") 39 if (service_name == "accessibility_autoclick")
42 return base::MakeUnique<ash::autoclick::AutoclickApplication>(); 40 return base::MakeUnique<ash::autoclick::AutoclickApplication>();
43 if (service_name == "touch_hud") 41 if (service_name == "touch_hud")
44 return base::MakeUnique<ash::touch_hud::TouchHudApplication>(); 42 return base::MakeUnique<ash::touch_hud::TouchHudApplication>();
45 if (service_name == tracing::mojom::kServiceName)
46 return base::MakeUnique<tracing::Service>();
47 #endif // defined(OS_CHROMEOS) 43 #endif // defined(OS_CHROMEOS)
48 if (service_name == mash::catalog_viewer::mojom::kServiceName) 44 if (service_name == mash::catalog_viewer::mojom::kServiceName)
49 return base::MakeUnique<mash::catalog_viewer::CatalogViewer>(); 45 return base::MakeUnique<mash::catalog_viewer::CatalogViewer>();
50 if (service_name == mash::session::mojom::kServiceName) 46 if (service_name == mash::session::mojom::kServiceName)
51 return base::MakeUnique<mash::session::Session>(); 47 return base::MakeUnique<mash::session::Session>();
52 if (service_name == ui::mojom::kServiceName) 48 if (service_name == ui::mojom::kServiceName)
53 return base::MakeUnique<ui::Service>(); 49 return base::MakeUnique<ui::Service>();
54 if (service_name == mash::quick_launch::mojom::kServiceName) 50 if (service_name == mash::quick_launch::mojom::kServiceName)
55 return base::MakeUnique<mash::quick_launch::QuickLaunch>(); 51 return base::MakeUnique<mash::quick_launch::QuickLaunch>();
56 if (service_name == mash::task_viewer::mojom::kServiceName) 52 if (service_name == mash::task_viewer::mojom::kServiceName)
57 return base::MakeUnique<mash::task_viewer::TaskViewer>(); 53 return base::MakeUnique<mash::task_viewer::TaskViewer>();
58 if (service_name == "test_ime_driver") 54 if (service_name == "test_ime_driver")
59 return base::MakeUnique<ui::test::TestIMEApplication>(); 55 return base::MakeUnique<ui::test::TestIMEApplication>();
60 #if defined(OS_LINUX) && !defined(OS_ANDROID) 56 #if defined(OS_LINUX) && !defined(OS_ANDROID)
61 if (service_name == "font_service") 57 if (service_name == "font_service")
62 return base::MakeUnique<font_service::FontServiceApp>(); 58 return base::MakeUnique<font_service::FontServiceApp>();
63 #endif // defined(OS_LINUX) && !defined(OS_ANDROID) 59 #endif // defined(OS_LINUX) && !defined(OS_ANDROID)
64 60
65 return nullptr; 61 return nullptr;
66 } 62 }
OLDNEW
« no previous file with comments | « chrome/app/mash/DEPS ('k') | components/filesystem/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698