Index: services/service_manager/tests/shutdown/shutdown_client_app.cc |
diff --git a/services/service_manager/tests/shutdown/shutdown_client_app.cc b/services/service_manager/tests/shutdown/shutdown_client_app.cc |
index b91e8f686f37cfb2a80ec42652cb626080a660b4..bc222d6f8977030a9a7faed056bf3cf7221f70cc 100644 |
--- a/services/service_manager/tests/shutdown/shutdown_client_app.cc |
+++ b/services/service_manager/tests/shutdown/shutdown_client_app.cc |
@@ -27,6 +27,10 @@ |
private: |
// service_manager::Service: |
+ void OnStart(ServiceContext* context) override { |
+ context_ = context; |
+ } |
+ |
bool OnConnect(const ServiceInfo& remote_info, |
InterfaceRegistry* registry) override { |
registry->AddInterface<mojom::ShutdownTestClientController>(this); |
@@ -42,7 +46,7 @@ |
// mojom::ShutdownTestClientController: |
void ConnectAndWait(const ConnectAndWaitCallback& callback) override { |
mojom::ShutdownTestServicePtr service; |
- context()->connector()->ConnectToInterface( |
+ context_->connector()->ConnectToInterface( |
"service:shutdown_service", &service); |
mojo::Binding<mojom::ShutdownTestClient> client_binding(this); |
@@ -61,6 +65,7 @@ |
callback.Run(); |
} |
+ ServiceContext* context_ = nullptr; |
mojo::BindingSet<mojom::ShutdownTestClientController> bindings_; |
DISALLOW_COPY_AND_ASSIGN(ShutdownClientApp); |