Index: examples/apptest/example_service_impl.cc |
diff --git a/examples/apptest/example_service_impl.cc b/examples/apptest/example_service_impl.cc |
index 6eae1ade4cd742f5cff04f19cbc2f010c900cc13..f2a37c4db504f23adf733a5d2dfd63377f4d29d1 100644 |
--- a/examples/apptest/example_service_impl.cc |
+++ b/examples/apptest/example_service_impl.cc |
@@ -4,16 +4,16 @@ |
#include "examples/apptest/example_service_impl.h" |
-#include "mojo/public/cpp/utility/run_loop.h" |
- |
namespace mojo { |
-ExampleServiceImpl::ExampleServiceImpl() {} |
+ExampleServiceImpl::ExampleServiceImpl(InterfaceRequest<ExampleService> request) |
+ : binding_(this, request.Pass()) { |
+} |
ExampleServiceImpl::~ExampleServiceImpl() {} |
void ExampleServiceImpl::Ping(uint16_t ping_value) { |
- client()->Pong(ping_value); |
+ binding_.client()->Pong(ping_value); |
} |
void ExampleServiceImpl::RunCallback(const Callback<void()>& callback) { |