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 097f368bc6593e45abeae8c594b9e0a23f669738..074e2e8dedba300e308eef502b43142c7101ee5e 100644 |
--- a/mojo/services/test_service/test_service_application.cc |
+++ b/mojo/services/test_service/test_service_application.cc |
@@ -22,11 +22,21 @@ TestServiceApplication::~TestServiceApplication() { |
bool TestServiceApplication::ConfigureIncomingConnection( |
ApplicationConnection* connection) { |
- connection->AddService<TestServiceImpl>(this); |
- connection->AddService<TestTimeServiceImpl>(); |
+ connection->AddService<TestService>(this); |
+ connection->AddService<TestTimeService>(this); |
return true; |
} |
+void TestServiceApplication::Create(ApplicationConnection* connection, |
+ InterfaceRequest<TestService> request) { |
+ BindToRequest(new TestServiceImpl(connection, this), &request); |
+} |
+ |
+void TestServiceApplication::Create(ApplicationConnection* connection, |
+ InterfaceRequest<TestTimeService> request) { |
+ BindToRequest(new TestTimeServiceImpl(connection), &request); |
+} |
+ |
void TestServiceApplication::AddRef() { |
assert(ref_count_ >= 0); |
ref_count_++; |