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

Unified Diff: components/html_viewer/blink_platform_impl.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
Index: components/html_viewer/blink_platform_impl.cc
diff --git a/components/html_viewer/blink_platform_impl.cc b/components/html_viewer/blink_platform_impl.cc
index a1a988a6e3654acd9a508ac7f778edb3845e906b..083b5c3261707cd5447dc0059f911594b67f6def 100644
--- a/components/html_viewer/blink_platform_impl.cc
+++ b/components/html_viewer/blink_platform_impl.cc
@@ -74,7 +74,7 @@ BlinkPlatformImpl::BlinkPlatformImpl(
if (app) {
mojo::URLRequestPtr request(mojo::URLRequest::New());
request->url = mojo::String::From("mojo:network_service");
- mojo::ApplicationConnection* connection =
+ scoped_ptr<mojo::ApplicationConnection> connection =
app->ConnectToApplication(request.Pass());
connection->ConnectToService(&network_service_);
connection->ConnectToService(&url_loader_factory_);
« no previous file with comments | « components/html_viewer/ax_provider_apptest.cc ('k') | components/html_viewer/html_document_application_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698