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

Unified Diff: components/view_manager/public/cpp/view_manager_init.h

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/view_manager/public/cpp/view_manager_init.h
diff --git a/components/view_manager/public/cpp/view_manager_init.h b/components/view_manager/public/cpp/view_manager_init.h
index 3d5129de75548d36bca464313a1ff58600df3c4a..347eb942cc240c790dfed3d35e9f2138c0ff3262 100644
--- a/components/view_manager/public/cpp/view_manager_init.h
+++ b/components/view_manager/public/cpp/view_manager_init.h
@@ -33,7 +33,7 @@ class ViewManagerInit {
ViewManagerRoot* view_manager_root() { return view_manager_root_.get(); }
// Returns the application connection established with the view manager.
- ApplicationConnection* connection() { return connection_; }
+ ApplicationConnection* connection() { return connection_.get(); }
private:
class ClientFactory;
@@ -41,7 +41,7 @@ class ViewManagerInit {
void OnCreate(InterfaceRequest<ViewManagerClient> request);
ApplicationImpl* app_;
- ApplicationConnection* connection_;
+ scoped_ptr<ApplicationConnection> connection_;
ViewManagerDelegate* delegate_;
scoped_ptr<ClientFactory> client_factory_;
ViewManagerRootPtr view_manager_root_;
« no previous file with comments | « components/view_manager/public/cpp/lib/view_manager_init.cc ('k') | components/view_manager/view_manager_client_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698