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

Issue 1115083002: Add the supporting code for the cast system tray integration (Closed)

Created:
5 years, 7 months ago by jdufault
Modified:
5 years, 7 months ago
Reviewers:
achuithb, oshima, jennyz
CC:
chromium-reviews, kalyank, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add the supporting code for the cast system tray integration - Adds CastConfigDelegate which gathers casting data from the chromecast extension - Provides access to the CastConfigDelegate to UI code via the SystemTrayDelegate BUG=433140 Committed: https://crrev.com/fe2e0ce0c145d955f2aa3c04cf2f82db987fd83a Cr-Commit-Position: refs/heads/master@{#330266}

Patch Set 1 #

Patch Set 2 : Support detecting if we are casting a tab or the desktop #

Total comments: 26

Patch Set 3 : Fix nits and remove CastObserver #

Patch Set 4 : Fix a few more nits #

Patch Set 5 : Share chromecast extension ids with other code #

Total comments: 35

Patch Set 6 : Address change requests #

Total comments: 2

Patch Set 7 : Update comment #

Patch Set 8 : Fix merge issue #

Patch Set 9 : Fix build for unit tests #

Total comments: 13

Patch Set 10 : Address comments #

Patch Set 11 : Address comments #

Total comments: 1

Patch Set 12 : Add reference to bug #

Unified diffs Side-by-side diffs Delta from patch set Stats (+344 lines, -0 lines) Patch
M ash/ash.gyp View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
A ash/cast_config_delegate.h View 1 2 3 4 5 6 7 8 9 1 chunk +103 lines, -0 lines 0 comments Download
A ash/cast_config_delegate.cc View 3 4 5 6 7 8 1 chunk +27 lines, -0 lines 0 comments Download
M ash/system/tray/system_tray_delegate.h View 2 chunks +4 lines, -0 lines 0 comments Download
M ash/system/tray/system_tray_delegate.cc View 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/browser/ui/ash/cast_config_delegate_chromeos.h View 1 2 3 4 5 6 7 8 9 1 chunk +38 lines, -0 lines 0 comments Download
A chrome/browser/ui/ash/cast_config_delegate_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +155 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.cc View 1 2 3 4 5 6 7 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (11 generated)
jdufault
5 years, 7 months ago (2015-04-29 23:16:00 UTC) #2
achuithb
Could you please flesh out the description to provide more guidance as to all the ...
5 years, 7 months ago (2015-05-06 00:45:58 UTC) #3
jdufault
I have removed CastObserver https://codereview.chromium.org/1115083002/diff/20001/ash/cast_config_delegate.h File ash/cast_config_delegate.h (right): https://codereview.chromium.org/1115083002/diff/20001/ash/cast_config_delegate.h#newcode32 ash/cast_config_delegate.h:32: enum TabId { On 2015/05/06 ...
5 years, 7 months ago (2015-05-06 19:02:56 UTC) #4
achuithb
https://codereview.chromium.org/1115083002/diff/20001/chrome/browser/ui/ash/cast_config_delegate_chromeos.cc File chrome/browser/ui/ash/cast_config_delegate_chromeos.cc (right): https://codereview.chromium.org/1115083002/diff/20001/chrome/browser/ui/ash/cast_config_delegate_chromeos.cc#newcode26 chrome/browser/ui/ash/cast_config_delegate_chromeos.cc:26: const char* kExtensionIds[] = { On 2015/05/06 19:02:55, jdufault ...
5 years, 7 months ago (2015-05-06 19:08:59 UTC) #5
jdufault
https://codereview.chromium.org/1115083002/diff/20001/chrome/browser/ui/ash/cast_config_delegate_chromeos.cc File chrome/browser/ui/ash/cast_config_delegate_chromeos.cc (right): https://codereview.chromium.org/1115083002/diff/20001/chrome/browser/ui/ash/cast_config_delegate_chromeos.cc#newcode26 chrome/browser/ui/ash/cast_config_delegate_chromeos.cc:26: const char* kExtensionIds[] = { On 2015/05/06 19:08:59, achuithb ...
5 years, 7 months ago (2015-05-07 20:05:33 UTC) #7
jennyz
https://codereview.chromium.org/1115083002/diff/80001/ash/cast_config_delegate.h File ash/cast_config_delegate.h (right): https://codereview.chromium.org/1115083002/diff/80001/ash/cast_config_delegate.h#newcode30 ash/cast_config_delegate.h:30: }; Add a blank line. https://codereview.chromium.org/1115083002/diff/80001/ash/cast_config_delegate.h#newcode54 ash/cast_config_delegate.h:54: int tab_id ...
5 years, 7 months ago (2015-05-07 21:50:35 UTC) #8
jdufault
https://codereview.chromium.org/1115083002/diff/80001/ash/cast_config_delegate.h File ash/cast_config_delegate.h (right): https://codereview.chromium.org/1115083002/diff/80001/ash/cast_config_delegate.h#newcode30 ash/cast_config_delegate.h:30: }; On 2015/05/07 21:50:34, jennyz wrote: > Add a ...
5 years, 7 months ago (2015-05-07 23:41:53 UTC) #9
jennyz
https://codereview.chromium.org/1115083002/diff/80001/ash/cast_config_delegate.h File ash/cast_config_delegate.h (right): https://codereview.chromium.org/1115083002/diff/80001/ash/cast_config_delegate.h#newcode54 ash/cast_config_delegate.h:54: int tab_id = TabId::DESKTOP; On 2015/05/07 23:41:52, jdufault wrote: ...
5 years, 7 months ago (2015-05-08 18:01:16 UTC) #10
achuithb
https://codereview.chromium.org/1115083002/diff/80001/ash/cast_config_delegate.h File ash/cast_config_delegate.h (right): https://codereview.chromium.org/1115083002/diff/80001/ash/cast_config_delegate.h#newcode63 ash/cast_config_delegate.h:63: using ReceiversAndActivites = std::map<std::string, ReceiverAndActivity>; On 2015/05/08 18:01:15, jennyz ...
5 years, 7 months ago (2015-05-08 18:12:20 UTC) #11
achuithb
https://codereview.chromium.org/1115083002/diff/80001/ash/cast_config_delegate.h File ash/cast_config_delegate.h (right): https://codereview.chromium.org/1115083002/diff/80001/ash/cast_config_delegate.h#newcode54 ash/cast_config_delegate.h:54: int tab_id = TabId::DESKTOP; On 2015/05/08 18:01:15, jennyz wrote: ...
5 years, 7 months ago (2015-05-08 18:19:44 UTC) #12
jennyz
lgtm https://codereview.chromium.org/1115083002/diff/80001/ash/cast_config_delegate.h File ash/cast_config_delegate.h (right): https://codereview.chromium.org/1115083002/diff/80001/ash/cast_config_delegate.h#newcode54 ash/cast_config_delegate.h:54: int tab_id = TabId::DESKTOP; On 2015/05/08 18:19:44, achuithb ...
5 years, 7 months ago (2015-05-08 20:39:28 UTC) #13
jdufault
https://codereview.chromium.org/1115083002/diff/100001/ash/cast_config_delegate.h File ash/cast_config_delegate.h (right): https://codereview.chromium.org/1115083002/diff/100001/ash/cast_config_delegate.h#newcode81 ash/cast_config_delegate.h:81: // we can cast to, ie, a Chromecast. On ...
5 years, 7 months ago (2015-05-13 22:05:50 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1115083002/120001
5 years, 7 months ago (2015-05-13 22:07:11 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/24742) ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 7 months ago (2015-05-13 22:11:52 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1115083002/140001
5 years, 7 months ago (2015-05-13 23:53:40 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/63493)
5 years, 7 months ago (2015-05-14 00:08:38 UTC) #24
achuithb
Oshima-san, need owner lgtm.
5 years, 7 months ago (2015-05-14 00:20:38 UTC) #26
oshima
can you check link error on dbg build?
5 years, 7 months ago (2015-05-14 00:22:28 UTC) #27
jdufault
On 2015/05/14 00:22:28, oshima wrote: > can you check link error on dbg build? It ...
5 years, 7 months ago (2015-05-14 20:35:52 UTC) #28
oshima
https://codereview.chromium.org/1115083002/diff/160001/ash/cast_config_delegate.h File ash/cast_config_delegate.h (right): https://codereview.chromium.org/1115083002/diff/160001/ash/cast_config_delegate.h#newcode32 ash/cast_config_delegate.h:32: struct ASH_EXPORT Activity { ASH_EXPORT struct is more common, ...
5 years, 7 months ago (2015-05-14 23:05:29 UTC) #29
jdufault
I have hopefully addressed all of the comments. I haven't had a chance to test ...
5 years, 7 months ago (2015-05-15 23:02:25 UTC) #30
oshima
https://codereview.chromium.org/1115083002/diff/160001/ash/cast_config_delegate.h File ash/cast_config_delegate.h (right): https://codereview.chromium.org/1115083002/diff/160001/ash/cast_config_delegate.h#newcode32 ash/cast_config_delegate.h:32: struct ASH_EXPORT Activity { On 2015/05/15 23:02:25, jdufault wrote: ...
5 years, 7 months ago (2015-05-15 23:32:55 UTC) #31
jdufault
https://codereview.chromium.org/1115083002/diff/160001/chrome/browser/ui/ash/cast_config_delegate_chromeos.cc File chrome/browser/ui/ash/cast_config_delegate_chromeos.cc (right): https://codereview.chromium.org/1115083002/diff/160001/chrome/browser/ui/ash/cast_config_delegate_chromeos.cc#newcode30 chrome/browser/ui/ash/cast_config_delegate_chromeos.cc:30: Profile* profile = ProfileManager::GetActiveUserProfile(); On 2015/05/15 23:32:55, oshima wrote: ...
5 years, 7 months ago (2015-05-15 23:58:27 UTC) #32
achuithb
On 2015/05/15 23:58:27, jdufault wrote: > https://codereview.chromium.org/1115083002/diff/160001/chrome/browser/ui/ash/cast_config_delegate_chromeos.cc > File chrome/browser/ui/ash/cast_config_delegate_chromeos.cc (right): > > https://codereview.chromium.org/1115083002/diff/160001/chrome/browser/ui/ash/cast_config_delegate_chromeos.cc#newcode30 > ...
5 years, 7 months ago (2015-05-16 00:00:48 UTC) #33
jdufault
On 2015/05/16 00:00:48, achuithb wrote: > On 2015/05/15 23:58:27, jdufault wrote: > > > https://codereview.chromium.org/1115083002/diff/160001/chrome/browser/ui/ash/cast_config_delegate_chromeos.cc ...
5 years, 7 months ago (2015-05-16 00:09:13 UTC) #34
achuithb
https://codereview.chromium.org/1115083002/diff/200001/chrome/browser/ui/ash/cast_config_delegate_chromeos.cc File chrome/browser/ui/ash/cast_config_delegate_chromeos.cc (right): https://codereview.chromium.org/1115083002/diff/200001/chrome/browser/ui/ash/cast_config_delegate_chromeos.cc#newcode30 chrome/browser/ui/ash/cast_config_delegate_chromeos.cc:30: // TODO(jdufault): Figure out which profile to use when ...
5 years, 7 months ago (2015-05-16 00:10:47 UTC) #35
jdufault
On 2015/05/16 00:10:47, achuithb wrote: > https://codereview.chromium.org/1115083002/diff/200001/chrome/browser/ui/ash/cast_config_delegate_chromeos.cc > File chrome/browser/ui/ash/cast_config_delegate_chromeos.cc (right): > > https://codereview.chromium.org/1115083002/diff/200001/chrome/browser/ui/ash/cast_config_delegate_chromeos.cc#newcode30 > ...
5 years, 7 months ago (2015-05-16 00:36:51 UTC) #36
oshima
lgtm
5 years, 7 months ago (2015-05-16 00:43:32 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1115083002/220001
5 years, 7 months ago (2015-05-16 00:46:23 UTC) #40
commit-bot: I haz the power
Committed patchset #12 (id:220001)
5 years, 7 months ago (2015-05-16 02:06:19 UTC) #41
commit-bot: I haz the power
5 years, 7 months ago (2015-05-18 11:30:52 UTC) #42
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/fe2e0ce0c145d955f2aa3c04cf2f82db987fd83a
Cr-Commit-Position: refs/heads/master@{#330266}

Powered by Google App Engine
This is Rietveld 408576698