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

Unified Diff: mojo/services/test_service/test_time_service_impl.cc

Issue 718473003: Add mojo::Binding<Interface> for more flexible pipe<->impl binding (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rename Binding::router() -> Binding::internal_router() Created 6 years, 1 month 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: mojo/services/test_service/test_time_service_impl.cc
diff --git a/mojo/services/test_service/test_time_service_impl.cc b/mojo/services/test_service/test_time_service_impl.cc
index 7201620a839cb58866c032148eacc48273b151dc..c8e97f461f0045031ea6c8078f8c42ecaa68cbb8 100644
--- a/mojo/services/test_service/test_time_service_impl.cc
+++ b/mojo/services/test_service/test_time_service_impl.cc
@@ -11,8 +11,10 @@
namespace mojo {
namespace test {
-TestTimeServiceImpl::TestTimeServiceImpl(ApplicationConnection* application)
- : application_(application) {
+TestTimeServiceImpl::TestTimeServiceImpl(
+ ApplicationConnection* application,
+ InterfaceRequest<TestTimeService> request)
+ : application_(application), binding_(this, request.Pass()) {
}
TestTimeServiceImpl::~TestTimeServiceImpl() {

Powered by Google App Engine
This is Rietveld 408576698