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

Issue 2774383003: [Media Router] Make MRUIService dispose its dependencies on MRMojoImpl in Shutdown() (Closed)

Created:
3 years, 9 months ago by takumif
Modified:
3 years, 9 months ago
Reviewers:
imcheng
CC:
chromium-reviews, chfremer+watch_chromium.org, feature-media-reviews_chromium.org, media-router+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Media Router] Make MRUIService dispose its dependencies on MRMojoImpl in Shutdown() Both MediaRouterUIService and MediaRouterMojoImpl are KeyedServices, and the dependency from the former to the latter should be disposed in its Shutdown() method. |action_controller_| is an observer to MediaRouterMojoImpl, so it needs to be reset in Shutdown(). BUG=705216 Review-Url: https://codereview.chromium.org/2774383003 Cr-Commit-Position: refs/heads/master@{#459900} Committed: https://chromium.googlesource.com/chromium/src/+/6812c7313dd67fcfad6f95d4b5a91cf7dcfda06a

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address Derek's comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -3 lines) Patch
M chrome/browser/media/router/media_router_ui_service.h View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/media/router/media_router_ui_service.cc View 1 1 chunk +6 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (17 generated)
takumif
Please take a look, thanks!
3 years, 9 months ago (2017-03-27 18:59:59 UTC) #6
imcheng
lgtm https://codereview.chromium.org/2774383003/diff/1/chrome/browser/media/router/media_router_ui_service.cc File chrome/browser/media/router/media_router_ui_service.cc (right): https://codereview.chromium.org/2774383003/diff/1/chrome/browser/media/router/media_router_ui_service.cc#newcode15 chrome/browser/media/router/media_router_ui_service.cc:15: base::MakeUnique<MediaRouterActionController>(profile)) {} nit: new MediaRouteActionController(profile)
3 years, 9 months ago (2017-03-27 20:51:06 UTC) #11
takumif
https://codereview.chromium.org/2774383003/diff/1/chrome/browser/media/router/media_router_ui_service.cc File chrome/browser/media/router/media_router_ui_service.cc (right): https://codereview.chromium.org/2774383003/diff/1/chrome/browser/media/router/media_router_ui_service.cc#newcode15 chrome/browser/media/router/media_router_ui_service.cc:15: base::MakeUnique<MediaRouterActionController>(profile)) {} On 2017/03/27 20:51:06, imcheng wrote: > nit: ...
3 years, 9 months ago (2017-03-27 21:49:08 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2774383003/20001
3 years, 9 months ago (2017-03-27 21:50:00 UTC) #19
commit-bot: I haz the power
3 years, 9 months ago (2017-03-27 22:13:55 UTC) #22
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/6812c7313dd67fcfad6f95d4b5a9...

Powered by Google App Engine
This is Rietveld 408576698