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

Unified Diff: services/ui/ime/ime_registrar_impl.cc

Issue 2945283002: Unify IMEDriver and IMEServer. (Closed)
Patch Set: Addressed feedback. Created 3 years, 6 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/ime_registrar_impl.h ('k') | services/ui/ime/ime_server_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ime/ime_registrar_impl.cc
diff --git a/services/ui/ime/ime_registrar_impl.cc b/services/ui/ime/ime_registrar_impl.cc
index 1696765c2e21c066b31c43dfed56a9deac717a27..f49de6e79283187f147d4b17183f1c7e33f7d548 100644
--- a/services/ui/ime/ime_registrar_impl.cc
+++ b/services/ui/ime/ime_registrar_impl.cc
@@ -6,8 +6,8 @@
namespace ui {
-IMERegistrarImpl::IMERegistrarImpl(IMEServerImpl* ime_server)
- : ime_server_(ime_server) {}
+IMERegistrarImpl::IMERegistrarImpl(IMEDriverBridge* ime_driver_bridge)
+ : ime_driver_bridge_(ime_driver_bridge) {}
IMERegistrarImpl::~IMERegistrarImpl() {}
@@ -19,6 +19,6 @@ void IMERegistrarImpl::RegisterDriver(mojom::IMEDriverPtr driver) {
// TODO(moshayedi): crbug.com/634441. IMERegistrarImpl currently identifies
// the last registered driver as the current driver. Rethink this once we
// have more usecases.
- ime_server_->OnDriverChanged(std::move(driver));
+ ime_driver_bridge_->SetDriver(std::move(driver));
}
} // namespace ui
« no previous file with comments | « services/ui/ime/ime_registrar_impl.h ('k') | services/ui/ime/ime_server_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698