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

Issue 1260193009: renderer: implement multiple permission requesting (Closed)

Created:
5 years, 4 months ago by Lalit Maganti
Modified:
5 years, 3 months ago
CC:
raymes
Base URL:
https://chromium.googlesource.com/chromium/src.git@permissions-request-multiple
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement renderer side of multiple permissions request. This CL implements navigator.permissions.request() with multiple permissions on the renderer side (permission_dispatcher and thread_proxy implementation). On the browser side, it gets the mojo service to return the current permission statuses in order for the call to "work". It does not implement a proper permission request UI yet. The browser side logic is being implemented in: https://codereview.chromium.org/1316863010/ BUG=516626 Committed: https://crrev.com/d0b65b68ecad02a4e677b854a107ae267c8ad93e Cr-Commit-Position: refs/heads/master@{#347446}

Patch Set 1 #

Patch Set 2 : Fix remaining stuff todo #

Patch Set 3 : Working implementation #

Patch Set 4 : Merge patches #

Total comments: 10

Patch Set 5 : Move default behaviour code from Blink to Chromium #

Patch Set 6 : Cleanup #

Patch Set 7 : Reflect blink changes #

Patch Set 8 : Split MIDI permission checking into another patch #

Patch Set 9 : Fix crash when duplicate permissions are requested #

Patch Set 10 : Rebase on midi change #

Patch Set 11 : #

Total comments: 28

Patch Set 12 : Unify code paths between single and multiple in several places #

Patch Set 13 : Rebase on top of other change #

Total comments: 20

Patch Set 14 : Fix review comments #

Total comments: 38

Patch Set 15 : Address review comments #

Patch Set 16 : Split off all browser sections #

Total comments: 4

Patch Set 17 : Address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -9 lines) Patch
M content/browser/permissions/permission_service_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/permissions/permission_service_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +16 lines, -0 lines 0 comments Download
M content/child/permissions/permission_dispatcher.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +30 lines, -3 lines 0 comments Download
M content/child/permissions/permission_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 10 chunks +81 lines, -6 lines 0 comments Download
M content/child/permissions/permission_dispatcher_thread_proxy.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M content/child/permissions/permission_dispatcher_thread_proxy.cc View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
M content/common/permission_service.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 26 (5 generated)
Lalit Maganti (personal)
https://codereview.chromium.org/1260193009/diff/50017/chrome/browser/permissions/permission_manager.cc File chrome/browser/permissions/permission_manager.cc (right): https://codereview.chromium.org/1260193009/diff/50017/chrome/browser/permissions/permission_manager.cc#newcode81 chrome/browser/permissions/permission_manager.cc:81: struct PermissionManager::PendingResponse { Move to header and keep implementation ...
5 years, 4 months ago (2015-08-03 23:10:26 UTC) #2
Lalit Maganti
Mounir: If you could have a quick look that would be awesome :)
5 years, 4 months ago (2015-08-04 16:49:13 UTC) #3
mlamouri (slow - plz ping)
In order to facilitate the review, do you think you can split? For example, you ...
5 years, 4 months ago (2015-08-06 09:45:31 UTC) #5
Lalit Maganti
Have split off the midi code into a separate patch as you suggested.
5 years, 4 months ago (2015-08-06 13:03:40 UTC) #6
mlamouri (slow - plz ping)
Quite a big CL. I haven't reviewed all of it. I had a deep look ...
5 years, 4 months ago (2015-08-18 13:37:16 UTC) #7
Lalit Maganti
Much of my comments are now irrelevant because of the unification of single and multi ...
5 years, 4 months ago (2015-08-20 14:23:30 UTC) #8
mlamouri (slow - plz ping)
I had a look at the CL except for the chrome PermissionManager. I'm still not ...
5 years, 4 months ago (2015-08-21 10:24:41 UTC) #9
Lalit Maganti
Responding to comments that don't need action - the others I will fix up once ...
5 years, 4 months ago (2015-08-21 12:56:00 UTC) #10
Lalit Maganti
https://codereview.chromium.org/1260193009/diff/230001/content/browser/permissions/permission_service_impl.cc File content/browser/permissions/permission_service_impl.cc (right): https://codereview.chromium.org/1260193009/diff/230001/content/browser/permissions/permission_service_impl.cc#newcode128 content/browser/permissions/permission_service_impl.cc:128: } On 2015/08/21 10:24:41, Mounir Lamouri wrote: > style: ...
5 years, 4 months ago (2015-08-25 16:58:27 UTC) #11
mlamouri (slow - plz ping)
I had another look at the content/renderer/ content/child/ and content/public/ changes. I will need to ...
5 years, 3 months ago (2015-09-02 11:36:42 UTC) #12
Lalit Maganti
Change seems to be coming down in size slowly. https://codereview.chromium.org/1260193009/diff/250001/chrome/browser/permissions/permission_manager.h File chrome/browser/permissions/permission_manager.h (right): https://codereview.chromium.org/1260193009/diff/250001/chrome/browser/permissions/permission_manager.h#newcode41 chrome/browser/permissions/permission_manager.h:41: ...
5 years, 3 months ago (2015-09-02 14:24:51 UTC) #13
mlamouri (slow - plz ping)
I was thinking of something in order to reduce the size patch and cut it ...
5 years, 3 months ago (2015-09-04 10:39:09 UTC) #14
Lalit Maganti
On 2015/09/04 10:39:09, Mounir Lamouri wrote: > I was thinking of something in order to ...
5 years, 3 months ago (2015-09-04 10:51:46 UTC) #15
mlamouri (slow - plz ping)
Please improve the CL description: """ Implement renderer side of multiple permissions request. This CL ...
5 years, 3 months ago (2015-09-04 14:57:06 UTC) #16
Lalit Maganti
Message looks good to me so used as is.
5 years, 3 months ago (2015-09-04 14:58:05 UTC) #17
mlamouri (slow - plz ping)
lgtm with comments applied. https://codereview.chromium.org/1260193009/diff/290001/content/browser/permissions/permission_service_impl.cc File content/browser/permissions/permission_service_impl.cc (right): https://codereview.chromium.org/1260193009/diff/290001/content/browser/permissions/permission_service_impl.cc#newcode141 content/browser/permissions/permission_service_impl.cc:141: mojo::Array<PermissionStatus> result(permissions.size()); add: TODO(lalitm,mlamouri): this ...
5 years, 3 months ago (2015-09-04 15:04:13 UTC) #18
Lalit Maganti
tsepez@: could you please take a look at the permission_service mojo change? https://chromiumcodereview.appspot.com/1260193009/diff/290001/content/browser/permissions/permission_service_impl.cc File content/browser/permissions/permission_service_impl.cc ...
5 years, 3 months ago (2015-09-04 16:07:28 UTC) #20
Tom Sepez
lgtm
5 years, 3 months ago (2015-09-04 16:29:52 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1260193009/310001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1260193009/310001
5 years, 3 months ago (2015-09-04 16:30:21 UTC) #24
commit-bot: I haz the power
Committed patchset #17 (id:310001)
5 years, 3 months ago (2015-09-04 17:56:36 UTC) #25
commit-bot: I haz the power
5 years, 3 months ago (2015-09-04 17:57:27 UTC) #26
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/d0b65b68ecad02a4e677b854a107ae267c8ad93e
Cr-Commit-Position: refs/heads/master@{#347446}

Powered by Google App Engine
This is Rietveld 408576698