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

Issue 2558843002: Public Sessions - prompt the user for tabCapture requests (Closed)

Created:
4 years ago by Ivan Šandrk
Modified:
4 years ago
CC:
chromium-reviews, extensions-reviews_chromium.org, oshima+watch_chromium.org, feature-media-reviews_chromium.org, mcasas+watch+vc_chromium.org, chromium-apps-reviews_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Public Sessions - prompt the user for tabCapture requests In Public Sessions, extensions (and apps) are force-installed by admin policy so the user does not get a chance to review the permissions for these extensions. This is not acceptable from a security/privacy standpoint, so when an extension uses the TabCapture API for the first time, we show the user a dialog where they can choose whether to allow the extension access to the API. This CL will also whitelist desktopCapture manifest permission feature as it's already safe in its current form (user is prompted) together with tabCapture. BUG=672093 Committed: https://crrev.com/1f9314626715713912e784d10ada39770fa80c1f Cr-Commit-Position: refs/heads/master@{#438594}

Patch Set 1 #

Patch Set 2 : Updated comments #

Total comments: 8

Patch Set 3 : std::move, git cl format #

Total comments: 7

Patch Set 4 : Drew's nits #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+243 lines, -6 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/extensions/device_local_account_management_policy_provider.cc View 1 2 3 4 2 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/media/webrtc/media_capture_devices_dispatcher.cc View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
A chrome/browser/media/webrtc/public_session_tab_capture_access_handler.h View 1 2 3 1 chunk +85 lines, -0 lines 0 comments Download
A chrome/browser/media/webrtc/public_session_tab_capture_access_handler.cc View 1 2 1 chunk +143 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (24 generated)
Ivan Šandrk
Hey Sergey, please take a look at c/b/m/webrtc/*. This is the 2nd CL, there will ...
4 years ago (2016-12-07 18:41:51 UTC) #8
Sergey Ulanov
+miu, in case he has any feedback lgtm https://codereview.chromium.org/2558843002/diff/20001/chrome/browser/chromeos/extensions/device_local_account_management_policy_provider.cc File chrome/browser/chromeos/extensions/device_local_account_management_policy_provider.cc (right): https://codereview.chromium.org/2558843002/diff/20001/chrome/browser/chromeos/extensions/device_local_account_management_policy_provider.cc#newcode457 chrome/browser/chromeos/extensions/device_local_account_management_policy_provider.cc:457: "desktopCapture", ...
4 years ago (2016-12-08 05:10:35 UTC) #13
Ivan Šandrk
https://codereview.chromium.org/2558843002/diff/20001/chrome/browser/chromeos/extensions/device_local_account_management_policy_provider.cc File chrome/browser/chromeos/extensions/device_local_account_management_policy_provider.cc (right): https://codereview.chromium.org/2558843002/diff/20001/chrome/browser/chromeos/extensions/device_local_account_management_policy_provider.cc#newcode457 chrome/browser/chromeos/extensions/device_local_account_management_policy_provider.cc:457: "desktopCapture", On 2016/12/08 05:10:35, Sergey Ulanov wrote: > Please ...
4 years ago (2016-12-08 14:10:25 UTC) #17
miu
I don't understand why all this code in a "webrtc" directory. It's not webrtc-specific at ...
4 years ago (2016-12-08 21:18:18 UTC) #20
Sergey Ulanov
On 2016/12/08 21:18:18, miu wrote: > I don't understand why all this code in a ...
4 years ago (2016-12-08 22:07:20 UTC) #21
miu
On 2016/12/08 22:07:20, Sergey Ulanov wrote: > On 2016/12/08 21:18:18, miu wrote: > > I ...
4 years ago (2016-12-08 22:32:53 UTC) #22
Ivan Šandrk
Thanks for you input Yuri. I will do some cleanup afterwards. https://codereview.chromium.org/2558843002/diff/40001/chrome/browser/chromeos/extensions/device_local_account_management_policy_provider.cc File chrome/browser/chromeos/extensions/device_local_account_management_policy_provider.cc (right): ...
4 years ago (2016-12-09 15:30:17 UTC) #23
miu
lgtm https://codereview.chromium.org/2558843002/diff/40001/chrome/browser/chromeos/extensions/device_local_account_management_policy_provider.cc File chrome/browser/chromeos/extensions/device_local_account_management_policy_provider.cc (right): https://codereview.chromium.org/2558843002/diff/40001/chrome/browser/chromeos/extensions/device_local_account_management_policy_provider.cc#newcode632 chrome/browser/chromeos/extensions/device_local_account_management_policy_provider.cc:632: "tabCapture", On 2016/12/09 15:30:17, Ivan Šandrk wrote: > ...
4 years ago (2016-12-10 00:47:20 UTC) #24
Ivan Šandrk
Hey Drew, please take a look! Ivan
4 years ago (2016-12-12 18:44:27 UTC) #25
Andrew T Wilson (Slow)
LGTM with two small nits https://codereview.chromium.org/2558843002/diff/40001/chrome/browser/media/webrtc/public_session_tab_capture_access_handler.h File chrome/browser/media/webrtc/public_session_tab_capture_access_handler.h (right): https://codereview.chromium.org/2558843002/diff/40001/chrome/browser/media/webrtc/public_session_tab_capture_access_handler.h#newcode17 chrome/browser/media/webrtc/public_session_tab_capture_access_handler.h:17: // access control to ...
4 years ago (2016-12-14 16:07:46 UTC) #26
Ivan Šandrk
https://codereview.chromium.org/2558843002/diff/40001/chrome/browser/media/webrtc/public_session_tab_capture_access_handler.h File chrome/browser/media/webrtc/public_session_tab_capture_access_handler.h (right): https://codereview.chromium.org/2558843002/diff/40001/chrome/browser/media/webrtc/public_session_tab_capture_access_handler.h#newcode17 chrome/browser/media/webrtc/public_session_tab_capture_access_handler.h:17: // access control to TabCapture manifest permission feature inside ...
4 years ago (2016-12-14 17:44:02 UTC) #27
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/2558843002/60001
4 years ago (2016-12-14 17:44:49 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/122862) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years ago (2016-12-14 17:47:14 UTC) #32
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/2558843002/80001
4 years ago (2016-12-14 18:33:39 UTC) #35
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-12-14 19:37:28 UTC) #38
commit-bot: I haz the power
4 years ago (2016-12-14 19:39:22 UTC) #40
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/1f9314626715713912e784d10ada39770fa80c1f
Cr-Commit-Position: refs/heads/master@{#438594}

Powered by Google App Engine
This is Rietveld 408576698