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

Unified Diff: examples/indirect_service/indirect_integer_service.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_integer_service.cc
diff --git a/examples/indirect_service/indirect_integer_service.cc b/examples/indirect_service/indirect_integer_service.cc
index e4239a99c903fd58780344d272c93c2c3ed044d5..072e9e07313b725c3252faa790f4900d1cd0f49b 100644
--- a/examples/indirect_service/indirect_integer_service.cc
+++ b/examples/indirect_service/indirect_integer_service.cc
@@ -29,8 +29,8 @@ class IndirectIntegerServiceImpl : public IndirectIntegerService,
// IndirectIntegerService
- void Set(IntegerServicePtr service) override {
- integer_service_ = service.Pass();
+ void Set(InterfaceHandle<IntegerService> service) override {
+ integer_service_ = IntegerServicePtr::Create(std::move(service));
}
void Get(InterfaceRequest<IntegerService> service) override {
« no previous file with comments | « examples/forwarding_content_handler/forwarding_content_handler.cc ('k') | examples/indirect_service/indirect_service_demo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698