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

Unified Diff: services/keyboard/linux/keyboard_service_impl.cc

Issue 1682113003: Mojo C++ bindings: Generate InterfaceHandle<> instead of InterfacePtr<>. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: delay InterfacePtr::Create() until you actually need an InterfacePtr. GetProxy() and ConnectToAppl… Created 4 years, 10 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/keyboard/linux/keyboard_service_impl.cc
diff --git a/services/keyboard/linux/keyboard_service_impl.cc b/services/keyboard/linux/keyboard_service_impl.cc
index f8b6afc2253cbde1070f18d377e0c7bc7a158870..e9fd9eb77cce0560391fadee638dbf1968ed1db5 100644
--- a/services/keyboard/linux/keyboard_service_impl.cc
+++ b/services/keyboard/linux/keyboard_service_impl.cc
@@ -24,9 +24,9 @@ LinuxKeyboardServiceImpl::~LinuxKeyboardServiceImpl() {
}
void LinuxKeyboardServiceImpl::Show(
- keyboard::KeyboardClientPtr client,
+ mojo::InterfaceHandle<keyboard::KeyboardClient> client,
keyboard::KeyboardType type) {
- client_ = client.Pass();
+ client_ = keyboard::KeyboardClientPtr::Create(std::move(client));
}
void LinuxKeyboardServiceImpl::ShowByRequest() {

Powered by Google App Engine
This is Rietveld 408576698