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

Issue 1476053002: [Media Router] Only keep track of toolbar MediaRouterAction in MediaRouterDialogControllerImpl. (Closed)

Created:
5 years ago by apacible
Modified:
5 years ago
Reviewers:
imcheng
CC:
chromium-reviews, media-router+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Media Router] Only keep track of toolbar MediaRouterAction in MediaRouterDialogControllerImpl. From some previous miscommunication, we assumed there was only one MediaRouterAction for each browser window instance. This is right and wrong -- there is only one MediaRouterAction for the toolbar, but there can be MediaRouterActions created and destroyed every time the overflow menu is opened. This meant that we were initially setting |action_| in MediaRouterDialogControllerImpl with the (intended) toolbar MediaRouterAction. Every time we open the overflow menu (click on wrench/hotdog icon), |action_| would be reset to a MediaRouterAction that's destroyed when the overflow menu is closed. This change makes it such that we only keep track of the toolbar MediaRouterAction, which will always be the first MediaRouterAction that is created when the browser is opened. BUG=531578 Committed: https://crrev.com/879ad12d519f2a50671e999e5a2c2459db0d9495 Cr-Commit-Position: refs/heads/master@{#362522}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -1 line) Patch
M chrome/browser/ui/webui/media_router/media_router_dialog_controller_impl.h View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_dialog_controller_impl.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 16 (8 generated)
apacible
PTAL, thanks!
5 years ago (2015-11-25 18:45:11 UTC) #4
imcheng
lgtm IMO, ideally we should know for a given MediaRouterAction whether it is created for ...
5 years ago (2015-12-01 18:34:38 UTC) #5
apacible
> IMO, ideally we should know for a given MediaRouterAction whether it is created > ...
5 years ago (2015-12-01 19:17:33 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1476053002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1476053002/1
5 years ago (2015-12-01 19:18:43 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_ng/builds/20654)
5 years ago (2015-12-01 19:39:02 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1476053002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1476053002/1
5 years ago (2015-12-01 21:35:52 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years ago (2015-12-01 22:12:23 UTC) #14
commit-bot: I haz the power
5 years ago (2015-12-01 22:13:41 UTC) #16
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/879ad12d519f2a50671e999e5a2c2459db0d9495
Cr-Commit-Position: refs/heads/master@{#362522}

Powered by Google App Engine
This is Rietveld 408576698