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

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

Issue 2326913003: Privatize StrongBinding lifetime management (Closed)
Patch Set: rebase Created 4 years, 3 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
Index: services/ui/ime/test_ime_driver/test_ime_application.cc
diff --git a/services/ui/ime/test_ime_driver/test_ime_application.cc b/services/ui/ime/test_ime_driver/test_ime_application.cc
index a0b067ef58e9461aa431540e13ba1f2c9dd6c471..f318c5cbecfa0e565eae54f9ab5267b6390ca698 100644
--- a/services/ui/ime/test_ime_driver/test_ime_application.cc
+++ b/services/ui/ime/test_ime_driver/test_ime_application.cc
@@ -4,6 +4,7 @@
#include "services/ui/ime/test_ime_driver/test_ime_application.h"
+#include "mojo/public/cpp/bindings/strong_binding.h"
#include "services/shell/public/cpp/connector.h"
#include "services/ui/ime/test_ime_driver/test_ime_driver.h"
#include "services/ui/public/interfaces/ime.mojom.h"
@@ -22,7 +23,8 @@ bool TestIMEApplication::OnConnect(const shell::Identity& remote_identity,
void TestIMEApplication::OnStart(const shell::Identity& identity) {
mojom::IMEDriverPtr ime_driver_ptr;
- new TestIMEDriver(GetProxy(&ime_driver_ptr));
+ mojo::MakeStrongBinding(base::MakeUnique<TestIMEDriver>(),
+ GetProxy(&ime_driver_ptr));
ui::mojom::IMERegistrarPtr ime_registrar;
connector()->ConnectToInterface("mojo:ui", &ime_registrar);
« no previous file with comments | « services/ui/gpu/display_compositor/display_compositor_impl.cc ('k') | services/ui/ime/test_ime_driver/test_ime_driver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698