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

Issue 1936903002: Allow SAML logins to use the webcam (Closed)

Created:
4 years, 7 months ago by Kevin Cernekee
Modified:
4 years, 7 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org, dzhioev+watch_chromium.org, achuith+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, tnagel+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow SAML logins to use the webcam Add a new opt-in policy, LoginVideoCaptureAllowedUrls, that works in a similar way to the existing VideoCaptureAllowedUrls policy. SAML login pages listed in the whitelist will be allowed to access the webcam (no audio). If the policy is unset or the list is empty, all SAML login pages will be denied webcam access. BUG=606979 TEST=whitelist https://clever.com via YAPS and verify with mo@clever.academy login Committed: https://crrev.com/cfcb9306e198a4e56facc865a60f45ce6d28f1aa Cr-Commit-Position: refs/heads/master@{#391390}

Patch Set 1 #

Patch Set 2 : fix test case and xml formatting #

Total comments: 26

Patch Set 3 : incorporate code review feedback #

Patch Set 4 : use unique_ptr for url list #

Total comments: 1

Patch Set 5 : add comment to JS re: C++ permission check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -4 lines) Patch
M chrome/browser/chromeos/login/ui/webui_login_view.cc View 1 2 4 chunks +40 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/proto/chrome_device_policy.proto View 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/settings/device_settings_provider.cc View 1 2 4 chunks +13 lines, -1 line 0 comments Download
M chrome/browser/resources/gaia_auth_host/saml_handler.js View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/test/data/policy/policy_test_cases.json View 1 1 chunk +8 lines, -0 lines 0 comments Download
M chromeos/settings/cros_settings_names.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chromeos/settings/cros_settings_names.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M components/policy/resources/policy_templates.json View 1 2 2 chunks +23 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (13 generated)
Kevin Cernekee
4 years, 7 months ago (2016-04-30 23:55:59 UTC) #2
Kevin Cernekee
4 years, 7 months ago (2016-05-01 02:18:43 UTC) #4
bartfab (slow)
Overall no concerns, but this needs a browser test. https://codereview.chromium.org/1936903002/diff/20001/chrome/browser/chromeos/login/ui/webui_login_view.cc File chrome/browser/chromeos/login/ui/webui_login_view.cc (right): https://codereview.chromium.org/1936903002/diff/20001/chrome/browser/chromeos/login/ui/webui_login_view.cc#newcode441 chrome/browser/chromeos/login/ui/webui_login_view.cc:441: ...
4 years, 7 months ago (2016-05-02 10:30:29 UTC) #5
Ilya Sherman
histograms.xml lgtm
4 years, 7 months ago (2016-05-02 18:40:07 UTC) #6
emaxx
lgtm with nits https://codereview.chromium.org/1936903002/diff/20001/chrome/browser/chromeos/login/ui/webui_login_view.cc File chrome/browser/chromeos/login/ui/webui_login_view.cc (right): https://codereview.chromium.org/1936903002/diff/20001/chrome/browser/chromeos/login/ui/webui_login_view.cc#newcode460 chrome/browser/chromeos/login/ui/webui_login_view.cc:460: for (size_t i = 0; i ...
4 years, 7 months ago (2016-05-02 18:42:08 UTC) #7
Kevin Cernekee
https://codereview.chromium.org/1936903002/diff/20001/chrome/browser/chromeos/login/ui/webui_login_view.cc File chrome/browser/chromeos/login/ui/webui_login_view.cc (right): https://codereview.chromium.org/1936903002/diff/20001/chrome/browser/chromeos/login/ui/webui_login_view.cc#newcode441 chrome/browser/chromeos/login/ui/webui_login_view.cc:441: controller.PermissionDenied(); On 2016/05/02 10:30:28, bartfab (slow) wrote: > Nit: ...
4 years, 7 months ago (2016-05-02 20:02:30 UTC) #9
Kevin Cernekee
Steven or Zel, could you please take a quick look? We're trying to get this ...
4 years, 7 months ago (2016-05-03 15:55:28 UTC) #11
bartfab (slow)
LGTM, assuming you will follow-up with a test at a later time. https://codereview.chromium.org/1936903002/diff/20001/chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc File chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc ...
4 years, 7 months ago (2016-05-03 16:14:15 UTC) #12
Kevin Cernekee
https://codereview.chromium.org/1936903002/diff/20001/chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc File chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc (right): https://codereview.chromium.org/1936903002/diff/20001/chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc#newcode332 chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc:332: base::ListValue* urls = new base::ListValue(); On 2016/05/03 16:14:15, bartfab ...
4 years, 7 months ago (2016-05-03 17:54:54 UTC) #13
stevenjb
rs owner lgtm
4 years, 7 months ago (2016-05-03 19:53:41 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1936903002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1936903002/60001
4 years, 7 months ago (2016-05-03 20:12:31 UTC) #16
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-03 20:16:38 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1936903002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1936903002/60001
4 years, 7 months ago (2016-05-03 21:03:44 UTC) #21
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/177015)
4 years, 7 months ago (2016-05-03 21:14:33 UTC) #23
Kevin Cernekee
xiyuan - could you please review the change under chrome/browser/resources/gaia_auth_host ? Thanks!
4 years, 7 months ago (2016-05-03 21:17:25 UTC) #25
xiyuan
lgtm https://codereview.chromium.org/1936903002/diff/60001/chrome/browser/resources/gaia_auth_host/saml_handler.js File chrome/browser/resources/gaia_auth_host/saml_handler.js (right): https://codereview.chromium.org/1936903002/diff/60001/chrome/browser/resources/gaia_auth_host/saml_handler.js#newcode153 chrome/browser/resources/gaia_auth_host/saml_handler.js:153: e.request.allow(); nit: Add a comment about where the ...
4 years, 7 months ago (2016-05-03 21:40:18 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1936903002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1936903002/80001
4 years, 7 months ago (2016-05-03 21:52:31 UTC) #29
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-05-03 23:19:39 UTC) #30
commit-bot: I haz the power
4 years, 7 months ago (2016-05-03 23:21:45 UTC) #32
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/cfcb9306e198a4e56facc865a60f45ce6d28f1aa
Cr-Commit-Position: refs/heads/master@{#391390}

Powered by Google App Engine
This is Rietveld 408576698