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

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: Address Derek's comment 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..5823f0f02fd8be6d23c8536a727963eaa895147c 100644
--- a/chrome/browser/media/router/media_router_ui_service.cc
+++ b/chrome/browser/media/router/media_router_ui_service.cc
@@ -11,17 +11,21 @@
namespace media_router {
MediaRouterUIService::MediaRouterUIService(Profile* profile)
- : action_controller_(profile) {}
+ : action_controller_(new MediaRouterActionController(profile)) {}
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