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

Unified Diff: mojo/services/test_service/test_service_application.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_service_application.cc
diff --git a/mojo/services/test_service/test_service_application.cc b/mojo/services/test_service/test_service_application.cc
index f08e1833e0d00e47f6b0a95703ef6cbcaed80b93..17fed3e0c74a5740abc927ec2c32e50c836d5ad0 100644
--- a/mojo/services/test_service/test_service_application.cc
+++ b/mojo/services/test_service/test_service_application.cc
@@ -32,11 +32,12 @@ bool TestServiceApplication::ConfigureIncomingConnection(
void TestServiceApplication::Create(ApplicationConnection* connection,
InterfaceRequest<TestService> request) {
BindToRequest(new TestServiceImpl(connection, this), &request);
+ AddRef();
}
void TestServiceApplication::Create(ApplicationConnection* connection,
InterfaceRequest<TestTimeService> request) {
- BindToRequest(new TestTimeServiceImpl(connection), &request);
+ new TestTimeServiceImpl(connection, request.Pass());
}
void TestServiceApplication::AddRef() {

Powered by Google App Engine
This is Rietveld 408576698