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

Issue 2746873004: Move ChromeOS login media access logic into a MediaAccessHandler (Closed)

Created:
3 years, 9 months ago by raymes
Modified:
3 years, 8 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, alemate+watch_chromium.org, chfremer+watch_chromium.org, achuith+watch_chromium.org, feature-media-reviews_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, davemoore+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move ChromeOS login media access logic into a MediaAccessHandler Currently the ChromeOS login screen media access logic is handled as a part of the PermissionBubbleMediaAccessHandler. However its permission handling logic is totally different to how permission requests are handled for drive-by pages. This moves the logic into its own MediaAccessHandler. Some code is shared with the ExtensionMediaAccessHandler. WebUILoginView::RequestMediaAccessPermission is changed to go through the MediaCaptureDevicesDispatcher which matches the codepath for other media permission requests. BUG=596786 Review-Url: https://codereview.chromium.org/2746873004 Cr-Commit-Position: refs/heads/master@{#463454} Committed: https://chromium.googlesource.com/chromium/src/+/2edae96f04b07205ce7b3ad83af879bcec2318a2

Patch Set 1 #

Patch Set 2 : Move SAML access logic into MediaAccessHandler #

Total comments: 13

Patch Set 3 : Move SAML media access logic into a MediaAccessHandler #

Total comments: 4

Patch Set 4 : ChromeOSLoginMediaAccessHandler #

Patch Set 5 : ChromeOSLoginMediaAccessHandler #

Total comments: 23

Patch Set 6 : Move ChromeOS login media access logic into a MediaAccessHandler #

Patch Set 7 : Move ChromeOS login media access logic into a MediaAccessHandler #

Patch Set 8 : Move ChromeOS login media access logic into a MediaAccessHandler #

Unified diffs Side-by-side diffs Delta from patch set Stats (+313 lines, -193 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/saml/saml_browsertest.cc View 1 2 3 4 5 2 chunks +23 lines, -34 lines 0 comments Download
M chrome/browser/chromeos/login/ui/webui_login_view.cc View 1 2 3 4 5 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/webview_login_browsertest.cc View 1 2 3 4 5 6 7 3 chunks +30 lines, -0 lines 0 comments Download
A + chrome/browser/media/chromeos_login_media_access_handler.h View 1 2 3 2 chunks +11 lines, -9 lines 0 comments Download
A chrome/browser/media/chromeos_login_media_access_handler.cc View 1 2 3 4 5 6 1 chunk +96 lines, -0 lines 0 comments Download
M chrome/browser/media/extension_media_access_handler.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/media/extension_media_access_handler.cc View 4 chunks +3 lines, -62 lines 0 comments Download
M chrome/browser/media/media_access_handler.h View 2 chunks +13 lines, -1 line 0 comments Download
A chrome/browser/media/media_access_handler.cc View 1 2 3 4 5 1 chunk +82 lines, -0 lines 0 comments Download
M chrome/browser/media/public_session_media_access_handler.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/media/public_session_media_access_handler.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/media/public_session_tab_capture_access_handler.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/media/public_session_tab_capture_access_handler.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/media/webrtc/desktop_capture_access_handler.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/media/webrtc/desktop_capture_access_handler.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/media/webrtc/media_capture_devices_dispatcher.cc View 1 2 3 4 5 6 8 chunks +29 lines, -9 lines 0 comments Download
M chrome/browser/media/webrtc/media_permission.cc View 1 2 3 4 5 2 chunks +0 lines, -67 lines 0 comments Download
M chrome/browser/media/webrtc/permission_bubble_media_access_handler.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/media/webrtc/permission_bubble_media_access_handler.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/media/webrtc/tab_capture_access_handler.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/media/webrtc/tab_capture_access_handler.cc View 1 chunk +1 line, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 54 (34 generated)
raymes
sergeyu: could you ptal? Thanks!
3 years, 9 months ago (2017-03-14 03:46:33 UTC) #5
Sergey Ulanov
lgtm https://codereview.chromium.org/2746873004/diff/20001/chrome/browser/chromeos/login/saml/saml_browsertest.cc File chrome/browser/chromeos/login/saml/saml_browsertest.cc (right): https://codereview.chromium.org/2746873004/diff/20001/chrome/browser/chromeos/login/saml/saml_browsertest.cc#newcode1455 chrome/browser/chromeos/login/saml/saml_browsertest.cc:1455: EXPECT_EQ( EXPECT_TRUE(..) Same for other EXPECT_EQ() in this ...
3 years, 9 months ago (2017-03-15 22:48:31 UTC) #12
raymes
+achuith for chrome/browser/chromeos/login/ OWNERS https://codereview.chromium.org/2746873004/diff/20001/chrome/browser/chromeos/login/saml/saml_browsertest.cc File chrome/browser/chromeos/login/saml/saml_browsertest.cc (right): https://codereview.chromium.org/2746873004/diff/20001/chrome/browser/chromeos/login/saml/saml_browsertest.cc#newcode1455 chrome/browser/chromeos/login/saml/saml_browsertest.cc:1455: EXPECT_EQ( On 2017/03/15 22:48:30, Sergey ...
3 years, 9 months ago (2017-03-16 02:30:37 UTC) #14
achuithb
lgtm https://codereview.chromium.org/2746873004/diff/20001/chrome/browser/media/saml_media_access_handler.h File chrome/browser/media/saml_media_access_handler.h (right): https://codereview.chromium.org/2746873004/diff/20001/chrome/browser/media/saml_media_access_handler.h#newcode10 chrome/browser/media/saml_media_access_handler.h:10: // MediaAccessHandler for media requests coming from SAML ...
3 years, 9 months ago (2017-03-16 03:46:04 UTC) #19
raymes
achuithb: could you PTAL. I've updated this based on the bug fix in crbug.com/701700. Specifically ...
3 years, 8 months ago (2017-04-03 03:30:11 UTC) #23
raymes
achuithb: friendly ping :)
3 years, 8 months ago (2017-04-04 21:52:53 UTC) #29
achuithb
Max, could you also take a look? Krishna, we should test SAML camera login once ...
3 years, 8 months ago (2017-04-05 00:55:36 UTC) #31
achuithb
lgtm from me; please wait for Maksim if possible.
3 years, 8 months ago (2017-04-05 00:56:00 UTC) #32
krishnargv
On 2017/04/05 00:56:00, achuithb wrote: > lgtm from me; please wait for Maksim if possible. ...
3 years, 8 months ago (2017-04-05 01:06:27 UTC) #33
krishnargv
On 2017/04/05 00:56:00, achuithb wrote: > lgtm from me; please wait for Maksim if possible. ...
3 years, 8 months ago (2017-04-05 01:06:32 UTC) #34
krishnargv
On 2017/04/05 00:56:00, achuithb wrote: > lgtm from me; please wait for Maksim if possible. ...
3 years, 8 months ago (2017-04-05 01:06:36 UTC) #35
emaxx
LGTM with nits, though I'm not super familiar with the modified code. https://codereview.chromium.org/2746873004/diff/120001/chrome/browser/chromeos/login/saml/saml_browsertest.cc File chrome/browser/chromeos/login/saml/saml_browsertest.cc ...
3 years, 8 months ago (2017-04-06 02:41:47 UTC) #36
raymes
https://codereview.chromium.org/2746873004/diff/120001/chrome/browser/chromeos/login/saml/saml_browsertest.cc File chrome/browser/chromeos/login/saml/saml_browsertest.cc (right): https://codereview.chromium.org/2746873004/diff/120001/chrome/browser/chromeos/login/saml/saml_browsertest.cc#newcode1447 chrome/browser/chromeos/login/saml/saml_browsertest.cc:1447: { On 2017/04/06 02:41:47, emaxx wrote: > nit: The ...
3 years, 8 months ago (2017-04-10 00:16:49 UTC) #37
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/2746873004/140001
3 years, 8 months ago (2017-04-10 00:17:08 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/401213)
3 years, 8 months ago (2017-04-10 01:07:40 UTC) #42
raymes
https://codereview.chromium.org/2746873004/diff/120001/chrome/browser/media/chromeos_login_media_access_handler.cc File chrome/browser/media/chromeos_login_media_access_handler.cc (right): https://codereview.chromium.org/2746873004/diff/120001/chrome/browser/media/chromeos_login_media_access_handler.cc#newcode23 chrome/browser/media/chromeos_login_media_access_handler.cc:23: chromeos::LoginDisplayHost* login_display_host = On 2017/04/10 00:16:49, raymes wrote: > ...
3 years, 8 months ago (2017-04-10 02:42:28 UTC) #43
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/2746873004/160001
3 years, 8 months ago (2017-04-10 02:42:50 UTC) #46
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/401242)
3 years, 8 months ago (2017-04-10 04:02:58 UTC) #48
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/2746873004/180001
3 years, 8 months ago (2017-04-10 22:21:34 UTC) #51
commit-bot: I haz the power
3 years, 8 months ago (2017-04-10 23:56:57 UTC) #54
Message was sent while issue was closed.
Committed patchset #8 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/2edae96f04b07205ce7b3ad83af8...

Powered by Google App Engine
This is Rietveld 408576698