|
|
Chromium Code Reviews
DescriptionCleanup TrayCast with media-router only support in mind.
This allows the TrayCast instance to immediately connect to the CastConfigDelegate, which allows TrayCast to fetch cast data before the tray pops up the first time.
This also allows TrayCast to properly support DIAL casts. A DIAL cast is when the Chromecast / sink stream directly from another source, ie, YouTube.
BUG=653313
Committed: https://crrev.com/e8ea94d6917ade3afc5f7c3164369ef15c3e76c9
Cr-Commit-Position: refs/heads/master@{#432603}
Patch Set 1 : Initial upload #Patch Set 2 : Rebase #Patch Set 3 : Rebase #
Total comments: 1
Patch Set 4 : Rebase #Patch Set 5 : Use LoginState::Observer #Patch Set 6 : Revert to notification #
Total comments: 2
Patch Set 7 : Add TODO #
Messages
Total messages: 48 (34 generated)
Description was changed from ========== Cleanup TrayCast with media-router only support in mind. BUG=653313 ========== to ========== Cleanup TrayCast with media-router only support in mind. This allows the TrayCast instance to immediately connect to the CastConfigDelegate, which allows TrayCast to fetch cast data before the tray pops up the first time. This also allows TrayCast to properly support DIAL casts. A DIAL cast is when the Chromecast / sink stream directly from another source, ie, YouTube. BUG=653313 ==========
jdufault@chromium.org changed reviewers: + achuith@chromium.org
The CQ bit was checked by jdufault@chromium.org to run a CQ dry run
Patchset #1 (id:1) has been deleted
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
achuith@, PTAL. Thanks!
lgtm. We don't have any tests for this code, do we?
On 2016/11/01 19:44:59, achuithb wrote: > lgtm. > > We don't have any tests for this code, do we? There are some at https://cs.chromium.org/chromium/src/chrome/browser/ui/ash/system_tray_tray_c...
On 2016/11/01 19:46:11, jdufault wrote: > On 2016/11/01 19:44:59, achuithb wrote: > > lgtm. > > > > We don't have any tests for this code, do we? > > There are some at > https://cs.chromium.org/chromium/src/chrome/browser/ui/ash/system_tray_tray_c... Nothing relevant in this CL that could be tested cleanly?
On 2016/11/01 19:48:35, achuithb wrote: > On 2016/11/01 19:46:11, jdufault wrote: > > On 2016/11/01 19:44:59, achuithb wrote: > > > lgtm. > > > > > > We don't have any tests for this code, do we? > > > > There are some at > > > https://cs.chromium.org/chromium/src/chrome/browser/ui/ash/system_tray_tray_c... > > Nothing relevant in this CL that could be tested cleanly? I don't think so. I'm not sure of a good way to test the profile changes, and the DIAL support is all abstracted cleanly behind the media router API.
On 2016/11/01 19:50:17, jdufault wrote: > On 2016/11/01 19:48:35, achuithb wrote: > > On 2016/11/01 19:46:11, jdufault wrote: > > > On 2016/11/01 19:44:59, achuithb wrote: > > > > lgtm. > > > > > > > > We don't have any tests for this code, do we? > > > > > > There are some at > > > > > > https://cs.chromium.org/chromium/src/chrome/browser/ui/ash/system_tray_tray_c... > > > > Nothing relevant in this CL that could be tested cleanly? > > I don't think so. I'm not sure of a good way to test the profile changes, and > the DIAL support is all abstracted cleanly behind the media router API. ok
The CQ bit was checked by jdufault@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...) cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linu...) linux_chromium_chromeos_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_clobber_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_comp...) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by jdufault@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Description was changed from ========== Cleanup TrayCast with media-router only support in mind. This allows the TrayCast instance to immediately connect to the CastConfigDelegate, which allows TrayCast to fetch cast data before the tray pops up the first time. This also allows TrayCast to properly support DIAL casts. A DIAL cast is when the Chromecast / sink stream directly from another source, ie, YouTube. BUG=653313 ========== to ========== Cleanup TrayCast with media-router only support in mind. This allows the TrayCast instance to immediately connect to the CastConfigDelegate, which allows TrayCast to fetch cast data before the tray pops up the first time. This also allows TrayCast to properly support DIAL casts. A DIAL cast is when the Chromecast / sink stream directly from another source, ie, YouTube. TBR=oshima@chromium.org BUG=653313 ==========
Description was changed from ========== Cleanup TrayCast with media-router only support in mind. This allows the TrayCast instance to immediately connect to the CastConfigDelegate, which allows TrayCast to fetch cast data before the tray pops up the first time. This also allows TrayCast to properly support DIAL casts. A DIAL cast is when the Chromecast / sink stream directly from another source, ie, YouTube. TBR=oshima@chromium.org BUG=653313 ========== to ========== Cleanup TrayCast with media-router only support in mind. This allows the TrayCast instance to immediately connect to the CastConfigDelegate, which allows TrayCast to fetch cast data before the tray pops up the first time. This also allows TrayCast to properly support DIAL casts. A DIAL cast is when the Chromecast / sink stream directly from another source, ie, YouTube. BUG=653313 ==========
jdufault@chromium.org changed reviewers: + oshima@chromium.org
oshima@, PTAL for owner approval. Thanks!
https://codereview.chromium.org/2466043002/diff/60001/chrome/browser/ui/ash/c... File chrome/browser/ui/ash/cast_config_delegate_media_router.cc (right): https://codereview.chromium.org/2466043002/diff/60001/chrome/browser/ui/ash/c... chrome/browser/ui/ash/cast_config_delegate_media_router.cc:228: case chrome::NOTIFICATION_SESSION_STARTED: notification is deprecated and it's discouraged to add new usage. (crbug.com/268984) Can you use LoginState::Observer?
The CQ bit was checked by jdufault@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by jdufault@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
On 2016/11/10 18:10:18, oshima wrote: > https://codereview.chromium.org/2466043002/diff/60001/chrome/browser/ui/ash/c... > File chrome/browser/ui/ash/cast_config_delegate_media_router.cc (right): > > https://codereview.chromium.org/2466043002/diff/60001/chrome/browser/ui/ash/c... > chrome/browser/ui/ash/cast_config_delegate_media_router.cc:228: case > chrome::NOTIFICATION_SESSION_STARTED: > notification is deprecated and it's discouraged to add new usage. > (crbug.com/268984) Can you use LoginState::Observer? I played around with doing this (see patch set 5), but it looks like the actual notification dependency is on NOTIFICATION_LOGIN_USER_PROFILE_PREPARED. I don't think there is an equivalent callback yet. I also looked into adding such a callback, but user manager / session manager code is currently getting refactored so I think using the notification for the time being is reasonable; once the relevant callback is added it should be pretty trivial to switch this use over.
The CQ bit was checked by jdufault@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linu...)
lgtm https://codereview.chromium.org/2466043002/diff/120001/chrome/browser/ui/ash/... File chrome/browser/ui/ash/cast_config_delegate_media_router.cc (right): https://codereview.chromium.org/2466043002/diff/120001/chrome/browser/ui/ash/... chrome/browser/ui/ash/cast_config_delegate_media_router.cc:227: switch (type) { can you add TODO + bug to change to use observer/lisntener?
https://codereview.chromium.org/2466043002/diff/120001/chrome/browser/ui/ash/... File chrome/browser/ui/ash/cast_config_delegate_media_router.cc (right): https://codereview.chromium.org/2466043002/diff/120001/chrome/browser/ui/ash/... chrome/browser/ui/ash/cast_config_delegate_media_router.cc:227: switch (type) { On 2016/11/15 23:38:05, oshima wrote: > can you add TODO + bug to change to use observer/lisntener? Done.
The CQ bit was checked by jdufault@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from achuith@chromium.org, oshima@chromium.org Link to the patchset: https://codereview.chromium.org/2466043002/#ps140001 (title: "Add TODO")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Cleanup TrayCast with media-router only support in mind. This allows the TrayCast instance to immediately connect to the CastConfigDelegate, which allows TrayCast to fetch cast data before the tray pops up the first time. This also allows TrayCast to properly support DIAL casts. A DIAL cast is when the Chromecast / sink stream directly from another source, ie, YouTube. BUG=653313 ========== to ========== Cleanup TrayCast with media-router only support in mind. This allows the TrayCast instance to immediately connect to the CastConfigDelegate, which allows TrayCast to fetch cast data before the tray pops up the first time. This also allows TrayCast to properly support DIAL casts. A DIAL cast is when the Chromecast / sink stream directly from another source, ie, YouTube. BUG=653313 ==========
Message was sent while issue was closed.
Committed patchset #7 (id:140001)
Message was sent while issue was closed.
Description was changed from ========== Cleanup TrayCast with media-router only support in mind. This allows the TrayCast instance to immediately connect to the CastConfigDelegate, which allows TrayCast to fetch cast data before the tray pops up the first time. This also allows TrayCast to properly support DIAL casts. A DIAL cast is when the Chromecast / sink stream directly from another source, ie, YouTube. BUG=653313 ========== to ========== Cleanup TrayCast with media-router only support in mind. This allows the TrayCast instance to immediately connect to the CastConfigDelegate, which allows TrayCast to fetch cast data before the tray pops up the first time. This also allows TrayCast to properly support DIAL casts. A DIAL cast is when the Chromecast / sink stream directly from another source, ie, YouTube. BUG=653313 Committed: https://crrev.com/e8ea94d6917ade3afc5f7c3164369ef15c3e76c9 Cr-Commit-Position: refs/heads/master@{#432603} ==========
Message was sent while issue was closed.
Patchset 7 (id:??) landed as https://crrev.com/e8ea94d6917ade3afc5f7c3164369ef15c3e76c9 Cr-Commit-Position: refs/heads/master@{#432603} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
