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

Unified Diff: examples/indirect_service/indirect_service_demo.cc

Issue 1118843003: Remove some InterfacePtr<> methods which directly deal with message pipe handles. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 8 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 | « examples/bitmap_uploader/bitmap_uploader.cc ('k') | examples/spinning_cube/gles2_client_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 dad816f6c7c255949e5a25ada641f3ff00d095c0..b1d459b0cc2c89153365bd2401b0506fb603c1a7 100644
--- a/examples/indirect_service/indirect_service_demo.cc
+++ b/examples/indirect_service/indirect_service_demo.cc
@@ -46,7 +46,8 @@ class DemoTask {
}
void Run() {
- integer_service_.Bind(proxy_handle_.Pass());
+ integer_service_.Bind(
+ InterfacePtrInfo<IntegerService>(proxy_handle_.Pass(), 0u));
base::Callback<void(int32_t)> callback =
base::Bind(&DemoTask::SaveResultAndFinish, base::Unretained(this));
for(int unsigned i = 0; i < iteration_count_; i++) {
@@ -107,9 +108,9 @@ class IndirectServiceDemoAppDelegate : public ApplicationDelegate {
base::Unretained(base::MessageLoop::current()));
// We're passing the integer_service_ proxy to another thread, so
// use its MessagePipe.
- tasks_.push_back(new DemoTask(integer_service.PassMessagePipe(),
- finished_callback,
- kTaskIterationCount));
+ tasks_.push_back(
+ new DemoTask(integer_service.PassInterface().PassHandle(),
+ finished_callback, kTaskIterationCount));
}
}
« no previous file with comments | « examples/bitmap_uploader/bitmap_uploader.cc ('k') | examples/spinning_cube/gles2_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698