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

Issue 2615663002: Fix MediaClient::RequestCaptureState(). (Closed)

Created:
3 years, 11 months ago by riajiang
Modified:
3 years, 11 months ago
Reviewers:
xiyuan, James Cook
CC:
chromium-reviews, kalyank, sadrul, xiyuan
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix MediaClient::RequestCaptureState(). MediaClient::RequestCaptureState() was failing because chrome does not have access to ash::SessionStateDelegate and ash:: ShellContentState. 1. Changed places that used ash::SessionStateDelegate to use UserManager. 2. Changed places that used ash::ShellContentState to use ChromeShellContentState. Right now the only places in ash that use ash::ShellContentState are in tests so maybe we can move ShellContentState to chrome completely in the future. 3. Changed MultiProfileMediaTrayItem and TrayUser in ash to use SessionController to get the number of logged in users. BUG=676091 TEST=ash_unittests Review-Url: https://codereview.chromium.org/2615663002 Cr-Commit-Position: refs/heads/master@{#442679} Committed: https://chromium.googlesource.com/chromium/src/+/42968739363fbecc9515b3631d2e05ac7046fb02

Patch Set 1 #

Patch Set 2 : chrome #

Patch Set 3 : user manager #

Patch Set 4 : ash #

Total comments: 11

Patch Set 5 : comments #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -22 lines) Patch
M ash/mus/bridge/wm_shell_mus.cc View 1 2 3 4 5 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_content_state.h View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_content_state.cc View 1 2 3 4 1 chunk +21 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_content_state_chromeos.cc View 1 2 2 chunks +2 lines, -5 lines 0 comments Download
M chrome/browser/ui/ash/media_client.cc View 1 2 3 4 4 chunks +7 lines, -9 lines 0 comments Download
M chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.h View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (21 generated)
riajiang
Hi James, PTAL, thanks!
3 years, 11 months ago (2017-01-09 19:24:10 UTC) #5
James Cook
xiyuan, one question on this. https://codereview.chromium.org/2615663002/diff/80001/ash/common/system/chromeos/media_security/multi_profile_media_tray_item.cc File ash/common/system/chromeos/media_security/multi_profile_media_tray_item.cc (right): https://codereview.chromium.org/2615663002/diff/80001/ash/common/system/chromeos/media_security/multi_profile_media_tray_item.cc#newcode49 ash/common/system/chromeos/media_security/multi_profile_media_tray_item.cc:49: index < WmShell::Get()->session_controller()->NumberOfLoggedInUsers(); xiyuan, ...
3 years, 11 months ago (2017-01-09 21:07:19 UTC) #7
xiyuan
https://codereview.chromium.org/2615663002/diff/80001/ash/common/system/chromeos/media_security/multi_profile_media_tray_item.cc File ash/common/system/chromeos/media_security/multi_profile_media_tray_item.cc (right): https://codereview.chromium.org/2615663002/diff/80001/ash/common/system/chromeos/media_security/multi_profile_media_tray_item.cc#newcode49 ash/common/system/chromeos/media_security/multi_profile_media_tray_item.cc:49: index < WmShell::Get()->session_controller()->NumberOfLoggedInUsers(); On 2017/01/09 21:07:19, James Cook wrote: ...
3 years, 11 months ago (2017-01-09 21:21:47 UTC) #9
riajiang
As discussed with xiyuan@ offline, removed changes in TrayUser and MultiProfileMediaTrayItem since he is working ...
3 years, 11 months ago (2017-01-09 23:46:51 UTC) #14
James Cook
LGTM
3 years, 11 months ago (2017-01-09 23:57:01 UTC) #15
xiyuan
lgtm
3 years, 11 months ago (2017-01-10 19:40:17 UTC) #18
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/2615663002/140001
3 years, 11 months ago (2017-01-10 20:38:18 UTC) #26
commit-bot: I haz the power
3 years, 11 months ago (2017-01-10 20:44:30 UTC) #29
Message was sent while issue was closed.
Committed patchset #6 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/42968739363fbecc9515b3631d2e...

Powered by Google App Engine
This is Rietveld 408576698