Index: mojo/shell/shell_test_helper.cc |
diff --git a/mojo/shell/shell_test_helper.cc b/mojo/shell/shell_test_helper.cc |
index c530140b2b1e8bdda880ecb14cb5dc70a055bb0c..b7667e3157915176e59826e9a5359068d859e0c0 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_ = MakeProxy<Shell>(state_->shell_handle.Pass()); |
+ shell_->SetClient(shell_client_.get()); |
run_loop_->Quit(); |
} |