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

Unified Diff: components/html_viewer/html_document_application_delegate.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/html_document_application_delegate.cc
diff --git a/components/html_viewer/html_document_application_delegate.cc b/components/html_viewer/html_document_application_delegate.cc
index 68eff9f5d35a8f84b922fbca684b832d9cbc559e..935f5eec5dcaeb8046d2fb3886d0141a66cbf55e 100644
--- a/components/html_viewer/html_document_application_delegate.cc
+++ b/components/html_viewer/html_document_application_delegate.cc
@@ -115,7 +115,7 @@ void HTMLDocumentApplicationDelegate::OnTerminate() {
void HTMLDocumentApplicationDelegate::Initialize(mojo::ApplicationImpl* 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/blink_platform_impl.cc ('k') | components/view_manager/public/cpp/lib/view_manager_init.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698