Index: mojo/shell/shell_test_helper.cc |
diff --git a/mojo/shell/shell_test_helper.cc b/mojo/shell/shell_test_helper.cc |
index e8f4bea544cd5bd490efde56b22420d45c021e65..d1c77f97095419ab351db178e5538d020f087f4a 100644 |
--- a/mojo/shell/shell_test_helper.cc |
+++ b/mojo/shell/shell_test_helper.cc |
@@ -19,7 +19,7 @@ namespace shell { |
struct ShellTestHelper::State { |
scoped_ptr<Context> context; |
scoped_ptr<ServiceManager::TestAPI> test_api; |
- ScopedShellHandle shell_handle; |
+ ScopedMessagePipeHandle shell_handle; |
}; |
namespace { |
@@ -79,7 +79,8 @@ void ShellTestHelper::Init() { |
void ShellTestHelper::OnShellStarted() { |
DCHECK(state_); |
shell_client_.reset(new TestShellClient); |
- shell_.reset(state_->shell_handle.Pass(), shell_client_.get()); |
+ shell_.Bind(state_->shell_handle.Pass()); |
+ shell_->SetClient(shell_client_.get()); |
run_loop_->Quit(); |
} |