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

Issue 2019573002: Permissions: Allow control of individual requests in media permission infobars (Closed)

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

Description

Permissions: Allow control of individual requests in media permission infobars This adds toggle switches to Camera and Microphone permission requests, allowing the permissions to be allowed/blocked independently of each other. BUG=458606 Committed: https://crrev.com/2d1cc3ee786f0135b47d1258de67e166ac4eac9c Cr-Commit-Position: refs/heads/master@{#398756}

Patch Set 1 : #

Total comments: 17

Patch Set 2 : First round review #

Total comments: 4

Patch Set 3 : Review nits #

Total comments: 5

Patch Set 4 : benwells@ review comments #

Total comments: 2

Patch Set 5 : Bracket nit #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+207 lines, -34 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/infobar/AutofillSaveCardInfoBar.java View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/infobar/GroupedPermissionInfoBar.java View 1 2 3 chunks +69 lines, -7 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarControlLayout.java View 1 3 chunks +10 lines, -5 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/infobar/TranslateAlwaysPanel.java View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/infobar/InfoBarControlLayoutTest.java View 1 3 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/media/media_stream_devices_controller.h View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/media/media_stream_devices_controller.cc View 1 2 3 2 chunks +34 lines, -8 lines 2 comments Download
M chrome/browser/media/media_stream_infobar_delegate_android.cc View 1 2 3 2 chunks +14 lines, -1 line 0 comments Download
M chrome/browser/permissions/grouped_permission_infobar_delegate.h View 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/permissions/grouped_permission_infobar_delegate.cc View 1 2 3 4 3 chunks +27 lines, -3 lines 0 comments Download
M chrome/browser/ui/android/infobars/grouped_permission_infobar.h View 1 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/android/infobars/grouped_permission_infobar.cc View 1 2 chunks +20 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (12 generated)
tsergeant
dfalcantara@, this is the follow-up to https://codereview.chromium.org/1889643003/. Can you please take a look? https://codereview.chromium.org/2019573002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarControlLayout.java File ...
4 years, 6 months ago (2016-05-30 04:52:54 UTC) #5
gone
At a high level, I wonder if it makes more sense to pass the toggle ...
4 years, 6 months ago (2016-05-31 21:20:42 UTC) #6
tsergeant
I've changed the JNI interface to send through the array in one go. The original ...
4 years, 6 months ago (2016-06-02 07:04:36 UTC) #10
gone
lgtm, but you should get someone who has done C++ stuff more recently than me ...
4 years, 6 months ago (2016-06-02 19:11:34 UTC) #11
tsergeant
Thanks, Dan. +benwells@ for c/b/permissions and a check over the other C++ files. https://codereview.chromium.org/2019573002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/infobar/GroupedPermissionInfoBar.java File ...
4 years, 6 months ago (2016-06-03 00:42:33 UTC) #12
tsergeant
Actually +ben this time (for c/b/permissions and a check over the other C++ files)
4 years, 6 months ago (2016-06-03 00:43:22 UTC) #14
benwells
https://codereview.chromium.org/2019573002/diff/140001/chrome/browser/media/media_stream_devices_controller.h File chrome/browser/media/media_stream_devices_controller.h (right): https://codereview.chromium.org/2019573002/diff/140001/chrome/browser/media/media_stream_devices_controller.h#newcode58 chrome/browser/media/media_stream_devices_controller.h:58: void PermissionSplitResult(bool audio_accepted, bool video_accepted); Nit: Can you think ...
4 years, 6 months ago (2016-06-05 23:53:06 UTC) #15
tsergeant
https://codereview.chromium.org/2019573002/diff/140001/chrome/browser/media/media_stream_devices_controller.h File chrome/browser/media/media_stream_devices_controller.h (right): https://codereview.chromium.org/2019573002/diff/140001/chrome/browser/media/media_stream_devices_controller.h#newcode58 chrome/browser/media/media_stream_devices_controller.h:58: void PermissionSplitResult(bool audio_accepted, bool video_accepted); On 2016/06/05 23:53:05, benwells ...
4 years, 6 months ago (2016-06-06 00:38:30 UTC) #16
benwells
lgtm with a nit https://codereview.chromium.org/2019573002/diff/140001/chrome/browser/media/media_stream_devices_controller.h File chrome/browser/media/media_stream_devices_controller.h (right): https://codereview.chromium.org/2019573002/diff/140001/chrome/browser/media/media_stream_devices_controller.h#newcode58 chrome/browser/media/media_stream_devices_controller.h:58: void PermissionSplitResult(bool audio_accepted, bool video_accepted); ...
4 years, 6 months ago (2016-06-06 01:10:02 UTC) #17
tsergeant
+sergeyu@ for chrome/browser/media https://codereview.chromium.org/2019573002/diff/160001/chrome/browser/permissions/grouped_permission_infobar_delegate.cc File chrome/browser/permissions/grouped_permission_infobar_delegate.cc (right): https://codereview.chromium.org/2019573002/diff/160001/chrome/browser/permissions/grouped_permission_infobar_delegate.cc#newcode16 chrome/browser/permissions/grouped_permission_infobar_delegate.cc:16: accept_states_(types_.size(), true) { On 2016/06/06 01:10:02, ...
4 years, 6 months ago (2016-06-06 02:43:55 UTC) #19
Sergey Ulanov
https://codereview.chromium.org/2019573002/diff/180001/chrome/browser/media/media_stream_devices_controller.cc File chrome/browser/media/media_stream_devices_controller.cc (right): https://codereview.chromium.org/2019573002/diff/180001/chrome/browser/media/media_stream_devices_controller.cc#newcode302 chrome/browser/media/media_stream_devices_controller.cc:302: void MediaStreamDevicesController::GroupedRequestFinished(bool audio_accepted, Do we still need PermissionGranted() and ...
4 years, 6 months ago (2016-06-07 21:06:54 UTC) #20
tsergeant
https://codereview.chromium.org/2019573002/diff/180001/chrome/browser/media/media_stream_devices_controller.cc File chrome/browser/media/media_stream_devices_controller.cc (right): https://codereview.chromium.org/2019573002/diff/180001/chrome/browser/media/media_stream_devices_controller.cc#newcode302 chrome/browser/media/media_stream_devices_controller.cc:302: void MediaStreamDevicesController::GroupedRequestFinished(bool audio_accepted, On 2016/06/07 21:06:54, Sergey Ulanov wrote: ...
4 years, 6 months ago (2016-06-07 23:31:59 UTC) #21
Sergey Ulanov
lgtm
4 years, 6 months ago (2016-06-08 18:51:29 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2019573002/180001
4 years, 6 months ago (2016-06-08 23:51:10 UTC) #25
commit-bot: I haz the power
Committed patchset #5 (id:180001)
4 years, 6 months ago (2016-06-09 01:15:29 UTC) #26
commit-bot: I haz the power
4 years, 6 months ago (2016-06-09 01:17:01 UTC) #28
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/2d1cc3ee786f0135b47d1258de67e166ac4eac9c
Cr-Commit-Position: refs/heads/master@{#398756}

Powered by Google App Engine
This is Rietveld 408576698