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

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: rebase ontop of master, address trung's comments 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
« no previous file with comments | « services/keyboard/linux/keyboard_service_impl.h ('k') | services/native_support/process_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « services/keyboard/linux/keyboard_service_impl.h ('k') | services/native_support/process_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698