| Index: services/shell/runner/child/test_native_main.cc
|
| diff --git a/services/shell/runner/child/test_native_main.cc b/services/shell/runner/child/test_native_main.cc
|
| index 763b7eb7c779cff7e67cafbee00859846cec9d78..d1490a35645a8abc476c455b2a39e4abf77d0799 100644
|
| --- a/services/shell/runner/child/test_native_main.cc
|
| +++ b/services/shell/runner/child/test_native_main.cc
|
| @@ -58,11 +58,13 @@ int TestNativeMain(shell::Service* service) {
|
| mojo::edk::SetParentPipeHandleFromCommandLine();
|
|
|
| base::MessageLoop loop;
|
| - shell::ServiceContext impl(service,
|
| - shell::GetServiceRequestFromCommandLine());
|
| + service->set_context(base::WrapUnique(new shell::ServiceContext(
|
| + service, shell::GetServiceRequestFromCommandLine())));
|
| base::RunLoop().Run();
|
|
|
| mojo::edk::ShutdownIPCSupport();
|
| +
|
| + service->set_context(std::unique_ptr<ServiceContext>());
|
| }
|
|
|
| return 0;
|
|
|