Index: mojo/shell/capability_filter_unittest.cc |
diff --git a/mojo/shell/capability_filter_unittest.cc b/mojo/shell/capability_filter_unittest.cc |
index 688815f165007ca3a805ab3673e9cc0517c67d19..51845e29416f51acd3b496cbd50011f515eeeded 100644 |
--- a/mojo/shell/capability_filter_unittest.cc |
+++ b/mojo/shell/capability_filter_unittest.cc |
@@ -129,7 +129,7 @@ class TestApplication : public ApplicationDelegate { |
URLRequestPtr request(URLRequest::New()); |
request->url = String::From("test:service"); |
- ApplicationConnection* connection1 = |
+ scoped_ptr<ApplicationConnection> connection1 = |
app_->ConnectToApplication(request.Pass()); |
connection1->SetRemoteServiceProviderConnectionErrorHandler( |
base::Bind(&TestApplication::ConnectionClosed, |
@@ -137,7 +137,7 @@ class TestApplication : public ApplicationDelegate { |
URLRequestPtr request2(URLRequest::New()); |
request2->url = String::From("test:service2"); |
- ApplicationConnection* connection2 = |
+ scoped_ptr<ApplicationConnection> connection2 = |
app_->ConnectToApplication(request2.Pass()); |
connection2->SetRemoteServiceProviderConnectionErrorHandler( |
base::Bind(&TestApplication::ConnectionClosed, |