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

Unified Diff: services/ui/ime/test_ime_driver/main.cc

Issue 2230393002: IME for Mus: Make InputMethodMus use the IME Mojo API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update mash_browser_tests_manifest. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/ime/test_ime_driver/BUILD.gn ('k') | services/ui/ime/test_ime_driver/test_ime_application.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ime/test_ime_driver/main.cc
diff --git a/services/ui/ime/test_ime_driver/main.cc b/services/ui/ime/test_ime_driver/main.cc
index 795119fae475224c2aec838161eb6557c8a38013..67a38120ba2b2444be426924e0cecd1c2dda9f81 100644
--- a/services/ui/ime/test_ime_driver/main.cc
+++ b/services/ui/ime/test_ime_driver/main.cc
@@ -3,37 +3,10 @@
// found in the LICENSE file.
#include "services/shell/public/c/main.h"
-#include "services/shell/public/cpp/connector.h"
-#include "services/shell/public/cpp/service.h"
#include "services/shell/public/cpp/service_runner.h"
-#include "services/ui/ime/test_ime_driver/test_ime_driver.h"
-
-namespace ui {
-namespace test {
-
-class TestIME : public shell::Service {
- public:
- TestIME() {}
- ~TestIME() override {}
-
- private:
- // shell::Service:
- void OnStart(const shell::Identity& identity) override {
- mojom::IMEDriverPtr ime_driver_ptr;
- new TestIMEDriver(GetProxy(&ime_driver_ptr));
-
- ui::mojom::IMERegistrarPtr ime_registrar;
- connector()->ConnectToInterface("mojo:ui", &ime_registrar);
- ime_registrar->RegisterDriver(std::move(ime_driver_ptr));
- }
-
- DISALLOW_COPY_AND_ASSIGN(TestIME);
-};
-
-} // namespace test
-} // namespace ui
+#include "services/ui/ime/test_ime_driver/test_ime_application.h"
MojoResult ServiceMain(MojoHandle service_request_handle) {
- shell::ServiceRunner runner(new ui::test::TestIME);
+ shell::ServiceRunner runner(new ui::test::TestIMEApplication);
return runner.Run(service_request_handle);
}
« no previous file with comments | « services/ui/ime/test_ime_driver/BUILD.gn ('k') | services/ui/ime/test_ime_driver/test_ime_application.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698