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

Unified Diff: chrome/browser/media/router/media_router_ui_service.cc

Issue 2774383003: [Media Router] Make MRUIService dispose its dependencies on MRMojoImpl in Shutdown() (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « chrome/browser/media/router/media_router_ui_service.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/router/media_router_ui_service.cc
diff --git a/chrome/browser/media/router/media_router_ui_service.cc b/chrome/browser/media/router/media_router_ui_service.cc
index a473e1e5abad8390e46e717b64904a588b411df7..f9b242920e26a080d06f456710d9fa4bef93aa50 100644
--- a/chrome/browser/media/router/media_router_ui_service.cc
+++ b/chrome/browser/media/router/media_router_ui_service.cc
@@ -11,17 +11,22 @@
namespace media_router {
MediaRouterUIService::MediaRouterUIService(Profile* profile)
- : action_controller_(profile) {}
+ : action_controller_(
+ base::MakeUnique<MediaRouterActionController>(profile)) {}
imcheng 2017/03/27 20:51:06 nit: new MediaRouteActionController(profile)
takumif 2017/03/27 21:49:08 Done.
MediaRouterUIService::~MediaRouterUIService() {}
+void MediaRouterUIService::Shutdown() {
+ action_controller_.reset();
+}
+
// static
MediaRouterUIService* MediaRouterUIService::Get(Profile* profile) {
return MediaRouterUIServiceFactory::GetForBrowserContext(profile);
}
MediaRouterActionController* MediaRouterUIService::action_controller() {
- return &action_controller_;
+ return action_controller_.get();
}
} // namespace media_router
« no previous file with comments | « chrome/browser/media/router/media_router_ui_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698