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

Side by Side Diff: mash/package/mash_packaged_service.cc

Issue 2390013002: Rename mojo: to service: (Closed)
Patch Set: . Created 4 years, 2 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 | « mash/login/manifest.json ('k') | mash/quick_launch/manifest.json » ('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 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 "mash/package/mash_packaged_service.h" 5 #include "mash/package/mash_packaged_service.h"
6 6
7 #include "ash/autoclick/mus/autoclick_application.h" 7 #include "ash/autoclick/mus/autoclick_application.h"
8 #include "ash/mus/window_manager_application.h" 8 #include "ash/mus/window_manager_application.h"
9 #include "ash/touch_hud/mus/touch_hud_application.h" 9 #include "ash/touch_hud/mus/touch_hud_application.h"
10 #include "mash/app_driver/app_driver.h" 10 #include "mash/app_driver/app_driver.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 service_.get(), std::move(request))); 49 service_.get(), std::move(request)));
50 return; 50 return;
51 } 51 }
52 LOG(ERROR) << "unknown name " << mojo_name; 52 LOG(ERROR) << "unknown name " << mojo_name;
53 NOTREACHED(); 53 NOTREACHED();
54 } 54 }
55 55
56 // Please see header file for details on adding new services. 56 // Please see header file for details on adding new services.
57 std::unique_ptr<shell::Service> MashPackagedService::CreateService( 57 std::unique_ptr<shell::Service> MashPackagedService::CreateService(
58 const std::string& name) { 58 const std::string& name) {
59 if (name == "mojo:ash") 59 if (name == "service:ash")
60 return base::WrapUnique(new ash::mus::WindowManagerApplication); 60 return base::WrapUnique(new ash::mus::WindowManagerApplication);
61 if (name == "mojo:accessibility_autoclick") 61 if (name == "service:accessibility_autoclick")
62 return base::WrapUnique(new ash::autoclick::AutoclickApplication); 62 return base::WrapUnique(new ash::autoclick::AutoclickApplication);
63 if (name == "mojo:touch_hud") 63 if (name == "service:touch_hud")
64 return base::WrapUnique(new ash::touch_hud::TouchHudApplication); 64 return base::WrapUnique(new ash::touch_hud::TouchHudApplication);
65 if (name == "mojo:mash_session") 65 if (name == "service:mash_session")
66 return base::WrapUnique(new mash::session::Session); 66 return base::WrapUnique(new mash::session::Session);
67 if (name == "mojo:ui") 67 if (name == "service:ui")
68 return base::WrapUnique(new ui::Service); 68 return base::WrapUnique(new ui::Service);
69 if (name == "mojo:quick_launch") 69 if (name == "service:quick_launch")
70 return base::WrapUnique(new mash::quick_launch::QuickLaunch); 70 return base::WrapUnique(new mash::quick_launch::QuickLaunch);
71 if (name == "mojo:task_viewer") 71 if (name == "service:task_viewer")
72 return base::WrapUnique(new mash::task_viewer::TaskViewer); 72 return base::WrapUnique(new mash::task_viewer::TaskViewer);
73 if (name == "mojo:test_ime_driver") 73 if (name == "service:test_ime_driver")
74 return base::WrapUnique(new ui::test::TestIMEApplication); 74 return base::WrapUnique(new ui::test::TestIMEApplication);
75 #if defined(OS_LINUX) 75 #if defined(OS_LINUX)
76 if (name == "mojo:font_service") 76 if (name == "service:font_service")
77 return base::WrapUnique(new font_service::FontServiceApp); 77 return base::WrapUnique(new font_service::FontServiceApp);
78 #endif 78 #endif
79 if (name == "mojo:app_driver") 79 if (name == "service:app_driver")
80 return base::WrapUnique(new mash::app_driver::AppDriver); 80 return base::WrapUnique(new mash::app_driver::AppDriver);
81 return nullptr; 81 return nullptr;
82 } 82 }
83 83
84 } // namespace mash 84 } // namespace mash
OLDNEW
« no previous file with comments | « mash/login/manifest.json ('k') | mash/quick_launch/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698