| Index: mojo/shell/application_manager_unittest.cc
|
| diff --git a/mojo/shell/application_manager_unittest.cc b/mojo/shell/application_manager_unittest.cc
|
| index 01c285cf656c6f3695fdd26bcf537604a983a5cf..e4bfb3759589ac91ae0c6fc14aeb410e341bf8f9 100644
|
| --- a/mojo/shell/application_manager_unittest.cc
|
| +++ b/mojo/shell/application_manager_unittest.cc
|
| @@ -274,7 +274,8 @@ class TestAImpl : public TestA {
|
| : test_context_(test_context), binding_(this, request.Pass()) {
|
| mojo::URLRequestPtr request2(mojo::URLRequest::New());
|
| request2->url = mojo::String::From(kTestBURLString);
|
| - app_impl->ConnectToApplication(request2.Pass())->ConnectToService(&b_);
|
| + connection_ = app_impl->ConnectToApplication(request2.Pass());
|
| + connection_->ConnectToService(&b_);
|
| }
|
|
|
| ~TestAImpl() override {
|
| @@ -298,6 +299,7 @@ class TestAImpl : public TestA {
|
| test_context_->QuitSoon();
|
| }
|
|
|
| + scoped_ptr<ApplicationConnection> connection_;
|
| TesterContext* test_context_;
|
| TestBPtr b_;
|
| StrongBinding<TestA> binding_;
|
|
|