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

Issue 1680743006: [Media Router] Show user email in header if cloud sink is present. (Closed)

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

Description

[Media Router] Show user email in header if cloud sink is present. BUG=570797 Committed: https://crrev.com/91d24d370588abe93a3dbbed34ccbe0d6e44d7ea Cr-Commit-Position: refs/heads/master@{#377582}

Patch Set 1 #

Patch Set 2 : Check sinks before including email, update styling to change height dynamically. #

Patch Set 3 : rebase #

Patch Set 4 : Updated to be more dynamic on sink list since relevant sinks may not be available when the UI loads. #

Patch Set 5 : More adjustments to get dynamic height change working and updated domain handling. #

Total comments: 28

Patch Set 6 : Address comments #

Patch Set 7 : Overhauled implementation to use observers and fire events as well as push down logic into native m… #

Total comments: 24

Patch Set 8 : Rebase, message_handler.cc still in broken state #

Patch Set 9 : Fix breaks in native code and address comments. Everything works with no bugs detected in this pat… #

Total comments: 24

Patch Set 10 : Address comments #

Total comments: 5

Patch Set 11 : Address comments. Also fix display of long sink names hiding domain name and addressed bug with ac… #

Patch Set 12 : rebase #

Patch Set 13 : Added tests (still not passing for header) #

Patch Set 14 : Fixing js tests. Native tests still in progress... #

Total comments: 16

Patch Set 15 : All tests updated and passing, addressed comments. #

Patch Set 16 : Fix ellipsis direction for LTR #

Total comments: 20

Patch Set 17 : Address final comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+522 lines, -53 lines) Patch
M chrome/browser/resources/media_router/elements/media_router_container/media_router_container.css View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/resources/media_router/elements/media_router_container/media_router_container.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js View 1 2 3 4 5 6 7 8 9 3 chunks +11 lines, -3 lines 0 comments Download
M chrome/browser/resources/media_router/elements/media_router_header/media_router_header.css View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/resources/media_router/elements/media_router_header/media_router_header.html View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/resources/media_router/elements/media_router_header/media_router_header.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +74 lines, -6 lines 0 comments Download
M chrome/browser/resources/media_router/media_router.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/resources/media_router/media_router_ui_interface.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +37 lines, -11 lines 2 comments Download
M chrome/browser/ui/webui/media_router/media_router_webui_message_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 6 chunks +60 lines, -16 lines 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_webui_message_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 6 chunks +218 lines, -4 lines 0 comments Download
M chrome/test/data/webui/media_router/media_router_container_tests.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +34 lines, -1 line 0 comments Download
M chrome/test/data/webui/media_router/media_router_header_tests.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +53 lines, -6 lines 0 comments Download

Messages

Total messages: 38 (9 generated)
amp
There may be better approaches to accomplish this, but the latest patch works (modulo a ...
4 years, 10 months ago (2016-02-10 17:40:36 UTC) #2
apacible
Haven't taken a look yet, but can you add some screenshots? Thanks!
4 years, 10 months ago (2016-02-10 21:47:43 UTC) #3
amp
On 2016/02/10 21:47:43, apacible wrote: > Haven't taken a look yet, but can you add ...
4 years, 10 months ago (2016-02-10 22:31:22 UTC) #4
apacible
It may be easier to update tests after we finalize what goes into the container ...
4 years, 10 months ago (2016-02-11 17:09:14 UTC) #5
apacible
https://codereview.chromium.org/1680743006/diff/80001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js File chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js (right): https://codereview.chromium.org/1680743006/diff/80001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js#newcode1131 chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js:1131: hasExternalDomain = sink.domain != 'default' && If both hasSinkWithDomain ...
4 years, 10 months ago (2016-02-11 17:14:12 UTC) #6
amp
Replying to comments, but still working on moving parts into the header instead of the ...
4 years, 10 months ago (2016-02-11 21:21:24 UTC) #7
apacible
I'll take a look at everything again after the container/header changes. Let me know if ...
4 years, 10 months ago (2016-02-12 21:26:16 UTC) #8
amp
Code is updated for the new implementation mostly and is ready to start looking at, ...
4 years, 10 months ago (2016-02-13 02:11:05 UTC) #9
apacible
I started looking through this before I left the office, so publishing comments now while ...
4 years, 10 months ago (2016-02-13 08:13:02 UTC) #10
amp
PTAL. Code now works end to end without any noticeable issues and feels much cleaner. ...
4 years, 10 months ago (2016-02-16 22:19:12 UTC) #11
imcheng
https://codereview.chromium.org/1680743006/diff/160001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js File chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js (right): https://codereview.chromium.org/1680743006/diff/160001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js#newcode735 chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js:735: return !this.showDomain || this.isEmptyOrWhitespace_(sink.domain); showDomain should be defined above ...
4 years, 10 months ago (2016-02-17 00:51:09 UTC) #12
amp
https://codereview.chromium.org/1680743006/diff/160001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js File chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js (right): https://codereview.chromium.org/1680743006/diff/160001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js#newcode735 chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js:735: return !this.showDomain || this.isEmptyOrWhitespace_(sink.domain); On 2016/02/17 00:51:08, imcheng1 wrote: ...
4 years, 10 months ago (2016-02-17 02:11:37 UTC) #13
imcheng
https://codereview.chromium.org/1680743006/diff/160001/chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc File chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc (right): https://codereview.chromium.org/1680743006/diff/160001/chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc#newcode114 chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc:114: MediaRouterWebUIMessageHandler::IdentityVisibility::HIDDEN) On 2016/02/17 02:11:37, amp wrote: > On 2016/02/17 ...
4 years, 10 months ago (2016-02-18 18:58:54 UTC) #14
amp
Test coming after this last patch and a rebase. Per my previous comment about long ...
4 years, 10 months ago (2016-02-20 02:00:55 UTC) #15
apacible
Just minor comments. https://codereview.chromium.org/1680743006/diff/180001/chrome/browser/resources/media_router/elements/media_router_header/media_router_header.js File chrome/browser/resources/media_router/elements/media_router_header/media_router_header.js (right): https://codereview.chromium.org/1680743006/diff/180001/chrome/browser/resources/media_router/elements/media_router_header/media_router_header.js#newcode171 chrome/browser/resources/media_router/elements/media_router_header/media_router_header.js:171: !$('media-router-container').isEmptyOrWhitespace_(this.userEmail) ? On 2016/02/20 02:00:55, amp ...
4 years, 10 months ago (2016-02-23 21:51:01 UTC) #16
amp
PTAL. Everything should be updated and ready for final review. https://codereview.chromium.org/1680743006/diff/260001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.css File chrome/browser/resources/media_router/elements/media_router_container/media_router_container.css (right): https://codereview.chromium.org/1680743006/diff/260001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.css#newcode155 ...
4 years, 10 months ago (2016-02-24 00:29:23 UTC) #17
apacible
lgtm with nits https://codereview.chromium.org/1680743006/diff/300001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.css File chrome/browser/resources/media_router/elements/media_router_container/media_router_container.css (right): https://codereview.chromium.org/1680743006/diff/300001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.css#newcode157 chrome/browser/resources/media_router/elements/media_router_container/media_router_container.css:157: .sink-name { nit: I'd do something ...
4 years, 10 months ago (2016-02-25 00:16:02 UTC) #18
imcheng
lgtm + comments https://codereview.chromium.org/1680743006/diff/300001/chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc File chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc (right): https://codereview.chromium.org/1680743006/diff/300001/chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc#newcode75 chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc:75: AccountInfo account_info) { const AccountInfo& https://codereview.chromium.org/1680743006/diff/300001/chrome/browser/ui/webui/media_router/media_router_webui_message_handler.h ...
4 years, 10 months ago (2016-02-25 01:52:45 UTC) #19
amp
Some final screenshots to show the domain name handling in all scenarios (long domain overflow ...
4 years, 10 months ago (2016-02-25 03:01:15 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1680743006/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1680743006/320001
4 years, 10 months ago (2016-02-25 03:16:08 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/28697)
4 years, 10 months ago (2016-02-25 06:24:12 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1680743006/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1680743006/320001
4 years, 10 months ago (2016-02-25 14:23:37 UTC) #27
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-25 15:46:45 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1680743006/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1680743006/320001
4 years, 10 months ago (2016-02-25 15:48:29 UTC) #31
commit-bot: I haz the power
Committed patchset #17 (id:320001)
4 years, 10 months ago (2016-02-25 15:57:37 UTC) #32
commit-bot: I haz the power
Patchset 17 (id:??) landed as https://crrev.com/91d24d370588abe93a3dbbed34ccbe0d6e44d7ea Cr-Commit-Position: refs/heads/master@{#377582}
4 years, 10 months ago (2016-02-25 15:59:08 UTC) #34
Dan Beam
https://build.chromium.org/p/chromium.fyi/builders/Closure%20Compilation%20Linux/builds/48846 https://codereview.chromium.org/1680743006/diff/320001/chrome/browser/resources/media_router/media_router_ui_interface.js File chrome/browser/resources/media_router/media_router_ui_interface.js (right): https://codereview.chromium.org/1680743006/diff/320001/chrome/browser/resources/media_router/media_router_ui_interface.js#newcode84 chrome/browser/resources/media_router/media_router_ui_interface.js:84: * sinksAndIdentity: {{ {{ -> { https://codereview.chromium.org/1680743006/diff/320001/chrome/browser/resources/media_router/media_router_ui_interface.js#newcode90 chrome/browser/resources/media_router/media_router_ui_interface.js:90: ...
4 years, 10 months ago (2016-02-25 16:30:08 UTC) #36
Dan Beam
fixing here: https://codereview.chromium.org/1730163005/
4 years, 10 months ago (2016-02-25 16:34:30 UTC) #37
amp
4 years, 10 months ago (2016-02-25 16:52:22 UTC) #38
Message was sent while issue was closed.
On 2016/02/25 16:34:30, Dan Beam wrote:
> fixing here: https://codereview.chromium.org/1730163005/

Thanks for the fix, I'll make sure to check the closure compilation in the
future.

Powered by Google App Engine
This is Rietveld 408576698