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

Side by Side Diff: services/ui/test_ime/main.cc

Issue 2192263002: MojoMain() -> ServiceMain() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « services/ui/service.cc ('k') | services/ui/test_wm/test_wm.cc » ('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 "mojo/public/c/system/main.h" 5 #include "services/shell/public/c/main.h"
6 #include "services/shell/public/cpp/connector.h" 6 #include "services/shell/public/cpp/connector.h"
7 #include "services/shell/public/cpp/service.h" 7 #include "services/shell/public/cpp/service.h"
8 #include "services/shell/public/cpp/service_runner.h" 8 #include "services/shell/public/cpp/service_runner.h"
9 #include "services/ui/test_ime/test_ime_driver.h" 9 #include "services/ui/test_ime/test_ime_driver.h"
10 10
11 namespace ui { 11 namespace ui {
12 namespace test { 12 namespace test {
13 13
14 class TestIME : public shell::Service, 14 class TestIME : public shell::Service,
15 public shell::InterfaceFactory<mojom::IMEDriver> { 15 public shell::InterfaceFactory<mojom::IMEDriver> {
(...skipping 16 matching lines...) Expand all
32 } 32 }
33 33
34 std::unique_ptr<TestIMEDriver> ime_driver_; 34 std::unique_ptr<TestIMEDriver> ime_driver_;
35 35
36 DISALLOW_COPY_AND_ASSIGN(TestIME); 36 DISALLOW_COPY_AND_ASSIGN(TestIME);
37 }; 37 };
38 38
39 } // namespace test 39 } // namespace test
40 } // namespace ui 40 } // namespace ui
41 41
42 MojoResult MojoMain(MojoHandle shell_handle) { 42 MojoResult ServiceMain(MojoHandle service_request_handle) {
43 shell::ServiceRunner runner(new ui::test::TestIME); 43 shell::ServiceRunner runner(new ui::test::TestIME);
44 return runner.Run(shell_handle); 44 return runner.Run(service_request_handle);
45 } 45 }
OLDNEW
« no previous file with comments | « services/ui/service.cc ('k') | services/ui/test_wm/test_wm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698