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

Issue 1828803003: Media permissions: Remove plumbing for insecure pepper requests in Chrome (Closed)

Created:
4 years, 9 months ago by tsergeant
Modified:
4 years, 6 months ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, posciak+watch_chromium.org, feature-media-reviews_chromium.org, mcasas+watch_chromium.org, mlamouri+watch-permissions_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Media permissions: Remove plumbing for insecure pepper requests in Chrome Previously, getUserMedia requests would not persist decisions on insecure origins, but media requests from insecure origins through Pepper would be persisted. However, since M47, getUserMedia requests from insecure origins are blocked in the renderer, so differentiating between pepper and non-pepper requests is no longer necessary to know whether to store the permission decision (any such request is a Pepper request and can be stored). This CL removes the plumbing for Pepper requests from the media permission layer, since it is no longer needed. BUG=596786 Committed: https://crrev.com/e5d5c191121280aa0223615b10d8ab21197ff9b2 Cr-Commit-Position: refs/heads/master@{#399078}

Patch Set 1 #

Patch Set 2 : Fix DCHECKS #

Patch Set 3 : Fix DCHECKS again #

Total comments: 4

Patch Set 4 : Address comments and fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -147 lines) Patch
M chrome/browser/media/media_permission.h View 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/browser/media/media_permission.cc View 2 chunks +2 lines, -10 lines 0 comments Download
M chrome/browser/media/media_stream_device_permission_context.h View 1 2 3 2 chunks +0 lines, -11 lines 0 comments Download
M chrome/browser/media/media_stream_device_permission_context.cc View 1 2 3 2 chunks +12 lines, -41 lines 0 comments Download
M chrome/browser/media/media_stream_device_permissions.h View 1 2 3 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/media/media_stream_device_permissions.cc View 1 2 3 1 chunk +0 lines, -23 lines 0 comments Download
M chrome/browser/media/media_stream_devices_controller.cc View 1 2 3 2 chunks +14 lines, -23 lines 0 comments Download
M chrome/browser/media/media_stream_devices_controller_browsertest.cc View 1 chunk +0 lines, -15 lines 0 comments Download
M chrome/browser/media/permission_bubble_media_access_handler.cc View 1 chunk +2 lines, -12 lines 0 comments Download
M chrome/browser/policy/policy_browsertest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 25 (11 generated)
tsergeant
As discussed, PTAL
4 years, 6 months ago (2016-05-31 03:32:01 UTC) #6
raymes
https://codereview.chromium.org/1828803003/diff/60001/chrome/browser/media/media_stream_device_permission_context.cc File chrome/browser/media/media_stream_device_permission_context.cc (right): https://codereview.chromium.org/1828803003/diff/60001/chrome/browser/media/media_stream_device_permission_context.cc#newcode38 chrome/browser/media/media_stream_device_permission_context.cc:38: return GetPermissionStatusInternal(requesting_origin, embedding_origin); nit: should we inline this now? ...
4 years, 6 months ago (2016-06-06 05:11:10 UTC) #7
tsergeant
https://codereview.chromium.org/1828803003/diff/60001/chrome/browser/media/media_stream_device_permission_context.cc File chrome/browser/media/media_stream_device_permission_context.cc (right): https://codereview.chromium.org/1828803003/diff/60001/chrome/browser/media/media_stream_device_permission_context.cc#newcode38 chrome/browser/media/media_stream_device_permission_context.cc:38: return GetPermissionStatusInternal(requesting_origin, embedding_origin); On 2016/06/06 05:11:10, raymes wrote: > ...
4 years, 6 months ago (2016-06-06 07:19:33 UTC) #8
raymes
lgtm
4 years, 6 months ago (2016-06-06 07:51:50 UTC) #9
tsergeant
+sergeyu for chrome/browser/media
4 years, 6 months ago (2016-06-08 03:00:14 UTC) #11
Sergey Ulanov
lgtm
4 years, 6 months ago (2016-06-08 22:12:20 UTC) #12
tsergeant
+tnagel@ for policy_browsertest.cc
4 years, 6 months ago (2016-06-08 23:50:11 UTC) #14
Thiemo Nagel
On 2016/06/08 23:50:11, tsergeant wrote: > +tnagel@ for policy_browsertest.cc chrome/browser/policy LGTM
4 years, 6 months ago (2016-06-09 09:54:54 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1828803003/80001
4 years, 6 months ago (2016-06-09 23:01:57 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_TIMED_OUT, no build URL) mac_chromium_gn_rel on ...
4 years, 6 months ago (2016-06-10 01:03:48 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1828803003/80001
4 years, 6 months ago (2016-06-10 03:30:19 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years, 6 months ago (2016-06-10 03:35:38 UTC) #22
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-10 03:35:54 UTC) #23
commit-bot: I haz the power
4 years, 6 months ago (2016-06-10 03:36:43 UTC) #25
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/e5d5c191121280aa0223615b10d8ab21197ff9b2
Cr-Commit-Position: refs/heads/master@{#399078}

Powered by Google App Engine
This is Rietveld 408576698