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

Unified Diff: examples/indirect_service/indirect_service_demo.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
Index: examples/indirect_service/indirect_service_demo.cc
diff --git a/examples/indirect_service/indirect_service_demo.cc b/examples/indirect_service/indirect_service_demo.cc
index 4fdfb4ff778863bf5816e10ebce05026838c4dde..2c9d72a568907bef449cbfbb8e303bb969e6d99e 100644
--- a/examples/indirect_service/indirect_service_demo.cc
+++ b/examples/indirect_service/indirect_service_demo.cc
@@ -97,7 +97,8 @@ class IndirectServiceDemoAppDelegate : public ApplicationDelegate {
app->ConnectToService("mojo:indirect_integer_service",
&indirect_integer_service_);
app->ConnectToService("mojo:integer_service", &indirect_service_delegate);
- indirect_integer_service_->Set(indirect_service_delegate.Pass());
+ indirect_integer_service_->Set(
+ indirect_service_delegate.PassInterfaceHandle());
for (unsigned i = 0; i < kTaskCount; i++) {
IntegerServicePtr integer_service;
« no previous file with comments | « examples/indirect_service/indirect_integer_service.cc ('k') | examples/moterm_example_app/moterm_example_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698