Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(531)

Unified Diff: mojo/shell/capability_filter_unittest.cc

Issue 1254383016: ApplicationConnection lifetime management changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« mojo/common/tracing_impl.cc ('K') | « mojo/shell/application_manager_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« mojo/common/tracing_impl.cc ('K') | « mojo/shell/application_manager_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698