| Index: mojo/services/test_service/test_request_tracker_application.cc
|
| diff --git a/mojo/services/test_service/test_request_tracker_application.cc b/mojo/services/test_service/test_request_tracker_application.cc
|
| index 673cdf4595abe8ba9e1eda14aec0db70a14fb5cc..3a7e6d8543b192e5e5ef796a86e8d33b60a5d0d7 100644
|
| --- a/mojo/services/test_service/test_request_tracker_application.cc
|
| +++ b/mojo/services/test_service/test_request_tracker_application.cc
|
| @@ -12,7 +12,9 @@
|
| namespace mojo {
|
| namespace test {
|
|
|
| -TestRequestTrackerApplication::TestRequestTrackerApplication() {
|
| +TestRequestTrackerApplication::TestRequestTrackerApplication()
|
| + : test_tracked_request_factory_(&context_),
|
| + test_request_tracker_factory_(&context_) {
|
| }
|
|
|
| TestRequestTrackerApplication::~TestRequestTrackerApplication() {
|
| @@ -22,17 +24,23 @@ bool TestRequestTrackerApplication::ConfigureIncomingConnection(
|
| ApplicationConnection* connection) {
|
| // Every instance of the service and recorder shares the context.
|
| // Note, this app is single-threaded, so this is thread safe.
|
| - connection->AddService<TestTrackedRequestServiceImpl>(&context_);
|
| - connection->AddService<TestRequestTrackerImpl>(&context_);
|
| - connection->AddService<TestTimeServiceImpl>();
|
| + connection->AddService(&test_tracked_request_factory_);
|
| + connection->AddService(&test_request_tracker_factory_);
|
| + connection->AddService(this);
|
| return true;
|
| }
|
|
|
| +void TestRequestTrackerApplication::Create(
|
| + ApplicationConnection* connection,
|
| + InterfaceRequest<TestTimeService> request) {
|
| + BindToRequest(new TestTimeServiceImpl(connection), &request);
|
| +}
|
| +
|
| } // namespace test
|
|
|
| // static
|
| ApplicationDelegate* ApplicationDelegate::Create() {
|
| - return new mojo::test::TestRequestTrackerApplication();
|
| + return new test::TestRequestTrackerApplication();
|
| }
|
|
|
| } // namespace mojo
|
|
|