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

Issue 2410553002: Show Media Router toolbar icon ephemerally for MR dialogs (Closed)

Created:
4 years, 2 months ago by takumif
Modified:
4 years, 1 month ago
Reviewers:
mark a. foltz, msw
CC:
chromium-reviews, feature-media-reviews_chromium.org, mcasas+watch+vc_chromium.org, media-router+watch_chromium.org, miu+watch_chromium.org, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Show Media Router toolbar icon ephemerally for MR dialogs This CL is part 3 of 3 CLs to implement ephemeral toolbar icon for media router: 1. Implement MediaRouterActionController [1] 2. Show ephemeral icon for active local routes and issues [2] 3. Show ephemeral icon for open dialog (this CL) This CL makes MRDialogControllerImpl notify MRActionController whenever a dialog is shown or hidden, and MRActionController may show or hide the toolbar action icon depending on that. The icon will be shown when there are open dialogs, local routes or issues, or when the "Always Show Icon" option is checked. In MRUIBrowserTest, this CL replaces MRAction manually instantiated during setup with one whose instantiation is initiated by MRActionController. [1] https://codereview.chromium.org/2294973002 [2] https://codereview.chromium.org/2332693003 BUG=594577 Committed: https://crrev.com/89fc2a78d69cb432b445da453fd3f6fd02d4ebfe Cr-Commit-Position: refs/heads/master@{#431296}

Patch Set 1 : Deleted the first patch set on accident, responded to Mark's comments inline below #

Total comments: 18

Patch Set 2 : Address Mark's comments #

Total comments: 6

Patch Set 3 : Address Mark's comments #

Total comments: 51

Patch Set 4 : Rebase #

Patch Set 5 : Address Mike and Mark's comments #

Total comments: 2

Patch Set 6 : Address Mike's comments #

Total comments: 1

Patch Set 7 : DISALLOW_COPY_AND_ASSIGN MockMediaRouterActionController #

Unified diffs Side-by-side diffs Delta from patch set Stats (+369 lines, -119 lines) Patch
M chrome/browser/media/router/media_router_dialog_controller_unittest.cc View 1 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/media/router/media_router_ui_service.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/media/router/media_router_ui_service.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/media/router/media_router_ui_service_factory_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/toolbar/media_router_action_controller.h View 1 2 3 chunks +21 lines, -11 lines 0 comments Download
M chrome/browser/ui/toolbar/media_router_action_controller.cc View 1 2 3 4 5 chunks +20 lines, -4 lines 0 comments Download
M chrome/browser/ui/toolbar/media_router_action_controller_unittest.cc View 1 2 6 chunks +43 lines, -6 lines 0 comments Download
M chrome/browser/ui/toolbar/media_router_action_unittest.cc View 1 4 chunks +7 lines, -6 lines 0 comments Download
A chrome/browser/ui/toolbar/mock_media_router_action_controller.h View 1 2 3 4 5 6 1 chunk +29 lines, -0 lines 0 comments Download
A chrome/browser/ui/toolbar/mock_media_router_action_controller.cc View 1 2 3 4 5 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/media_router/media_router_ui_browsertest.cc View 1 2 3 4 5 8 chunks +51 lines, -36 lines 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_dialog_controller_impl.h View 1 2 3 4 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_dialog_controller_impl.cc View 1 4 chunks +18 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_dialog_controller_impl_unittest.cc View 1 2 3 4 5 5 chunks +48 lines, -9 lines 0 comments Download
D chrome/browser/ui/webui/media_router/media_router_test.h View 1 2 3 1 chunk +0 lines, -26 lines 0 comments Download
D chrome/browser/ui/webui/media_router/media_router_test.cc View 1 2 3 1 chunk +0 lines, -15 lines 0 comments Download
A chrome/browser/ui/webui/media_router/media_router_web_ui_test.h View 1 2 3 4 5 1 chunk +30 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/media_router/media_router_web_ui_test.cc View 1 2 3 4 5 1 chunk +61 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_webui_message_handler_unittest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 42 (23 generated)
takumif
mfoltz@: Please take a look at all the files. msw@: Please take a look at ...
4 years, 2 months ago (2016-10-10 19:38:26 UTC) #6
mark a. foltz
Overall looks good, a few comments/questions. Can you add test cases for media_router_dialog_controller after the ...
4 years, 2 months ago (2016-10-11 16:38:21 UTC) #7
takumif
On 2016/10/11 16:38:21, mark a. foltz wrote: > Overall looks good, a few comments/questions. Can ...
4 years, 2 months ago (2016-10-12 22:55:33 UTC) #11
mark a. foltz
On 2016/10/12 at 22:55:33, takumif wrote: > On 2016/10/11 16:38:21, mark a. foltz wrote: > ...
4 years, 2 months ago (2016-10-17 18:53:05 UTC) #12
mark a. foltz
[Hit reply early, remaining inline comments to come last] On 2016/10/17 at 18:53:05, mark a. ...
4 years, 2 months ago (2016-10-17 18:57:02 UTC) #13
mark a. foltz
https://codereview.chromium.org/2410553002/diff/80001/chrome/browser/media/router/test_helper.cc File chrome/browser/media/router/test_helper.cc (right): https://codereview.chromium.org/2410553002/diff/80001/chrome/browser/media/router/test_helper.cc#newcode12 chrome/browser/media/router/test_helper.cc:12: void MockPresentationSessionSuccessCallback( PresentationSessionSessionSuccessCallback is just a base::Callback with template ...
4 years, 2 months ago (2016-10-17 18:57:40 UTC) #14
takumif
Thanks for reviewing! https://codereview.chromium.org/2410553002/diff/80001/chrome/browser/media/router/test_helper.cc File chrome/browser/media/router/test_helper.cc (right): https://codereview.chromium.org/2410553002/diff/80001/chrome/browser/media/router/test_helper.cc#newcode12 chrome/browser/media/router/test_helper.cc:12: void MockPresentationSessionSuccessCallback( On 2016/10/17 18:57:39, mark ...
4 years, 1 month ago (2016-10-27 23:06:38 UTC) #16
mark a. foltz
LGTM Looks really good, and thanks for doing some cleanup of the test classes. https://codereview.chromium.org/2410553002/diff/120001/chrome/browser/ui/toolbar/media_router_action_controller.h ...
4 years, 1 month ago (2016-11-01 02:00:09 UTC) #17
takumif
https://codereview.chromium.org/2410553002/diff/120001/chrome/browser/ui/toolbar/media_router_action_controller.h File chrome/browser/ui/toolbar/media_router_action_controller.h (right): https://codereview.chromium.org/2410553002/diff/120001/chrome/browser/ui/toolbar/media_router_action_controller.h#newcode42 chrome/browser/ui/toolbar/media_router_action_controller.h:42: // May show the action icon if any dialog ...
4 years, 1 month ago (2016-11-02 03:16:54 UTC) #22
takumif
msw@, could you take a look at the c/b/ui/toolbar/ files? Thank you!
4 years, 1 month ago (2016-11-03 17:41:59 UTC) #23
msw
https://codereview.chromium.org/2410553002/diff/140001/chrome/browser/media/router/media_router_dialog_controller_unittest.cc File chrome/browser/media/router/media_router_dialog_controller_unittest.cc (right): https://codereview.chromium.org/2410553002/diff/140001/chrome/browser/media/router/media_router_dialog_controller_unittest.cc#newcode83 chrome/browser/media/router/media_router_dialog_controller_unittest.cc:83: // The non-Android implementation is tested in Why doesn't ...
4 years, 1 month ago (2016-11-04 00:07:17 UTC) #24
mark a. foltz
Just noticed one more minor thing. https://codereview.chromium.org/2410553002/diff/140001/chrome/browser/ui/webui/media_router/media_router_web_ui_test.cc File chrome/browser/ui/webui/media_router/media_router_web_ui_test.cc (right): https://codereview.chromium.org/2410553002/diff/140001/chrome/browser/ui/webui/media_router/media_router_web_ui_test.cc#newcode1 chrome/browser/ui/webui/media_router/media_router_web_ui_test.cc:1: // Copyright 2015 ...
4 years, 1 month ago (2016-11-08 21:15:53 UTC) #25
takumif
Thanks for reviewing! https://codereview.chromium.org/2410553002/diff/140001/chrome/browser/media/router/media_router_dialog_controller_unittest.cc File chrome/browser/media/router/media_router_dialog_controller_unittest.cc (right): https://codereview.chromium.org/2410553002/diff/140001/chrome/browser/media/router/media_router_dialog_controller_unittest.cc#newcode83 chrome/browser/media/router/media_router_dialog_controller_unittest.cc:83: // The non-Android implementation is tested ...
4 years, 1 month ago (2016-11-09 04:37:28 UTC) #27
msw
https://codereview.chromium.org/2410553002/diff/140001/chrome/browser/media/router/media_router_dialog_controller_unittest.cc File chrome/browser/media/router/media_router_dialog_controller_unittest.cc (right): https://codereview.chromium.org/2410553002/diff/140001/chrome/browser/media/router/media_router_dialog_controller_unittest.cc#newcode83 chrome/browser/media/router/media_router_dialog_controller_unittest.cc:83: // The non-Android implementation is tested in On 2016/11/09 ...
4 years, 1 month ago (2016-11-09 20:32:34 UTC) #28
takumif
https://codereview.chromium.org/2410553002/diff/140001/chrome/browser/media/router/media_router_ui_service.h File chrome/browser/media/router/media_router_ui_service.h (right): https://codereview.chromium.org/2410553002/diff/140001/chrome/browser/media/router/media_router_ui_service.h#newcode31 chrome/browser/media/router/media_router_ui_service.h:31: std::unique_ptr<MediaRouterActionController> action_controller_; On 2016/11/09 20:32:33, msw wrote: > On ...
4 years, 1 month ago (2016-11-10 01:53:59 UTC) #30
msw
lgtm with a nit. https://codereview.chromium.org/2410553002/diff/240001/chrome/browser/ui/toolbar/mock_media_router_action_controller.h File chrome/browser/ui/toolbar/mock_media_router_action_controller.h (right): https://codereview.chromium.org/2410553002/diff/240001/chrome/browser/ui/toolbar/mock_media_router_action_controller.h#newcode24 chrome/browser/ui/toolbar/mock_media_router_action_controller.h:24: }; nit: DISALLOW_COPY_AND_ASSIGN (made private:)
4 years, 1 month ago (2016-11-10 03:13:55 UTC) #31
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/2410553002/260001
4 years, 1 month ago (2016-11-10 18:23:15 UTC) #38
commit-bot: I haz the power
Committed patchset #7 (id:260001)
4 years, 1 month ago (2016-11-10 18:29:08 UTC) #40
commit-bot: I haz the power
4 years, 1 month ago (2016-11-10 18:38:55 UTC) #42
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/89fc2a78d69cb432b445da453fd3f6fd02d4ebfe
Cr-Commit-Position: refs/heads/master@{#431296}

Powered by Google App Engine
This is Rietveld 408576698