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

Issue 1360023005: permissions: remove duplicates from request multiple at the Blink level (Closed)

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

Description

permissions: remove duplicates from request multiple at the Blink level Propogating this information all the way to PermissionManager so it can be handled there seems to be a waste of time and memory. It also adds a bunch of complexity to all PermissionManager implementations. Instead of this, handle all duplication at the Blink level so that chrome can focus on handling requests. BUG=516626 Committed: https://crrev.com/b3d2e697dc79112379f96f0f34cf26b83227a737 Cr-Commit-Position: refs/heads/master@{#352072}

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 6

Patch Set 3 : Address review comments #

Total comments: 6

Patch Set 4 : Address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -15 lines) Patch
M third_party/WebKit/Source/modules/permissions/Permissions.cpp View 1 2 3 3 chunks +18 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/permissions/PermissionsCallback.h View 1 2 3 2 chunks +9 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/permissions/PermissionsCallback.cpp View 1 2 3 2 chunks +13 lines, -9 lines 0 comments Download

Messages

Total messages: 14 (2 generated)
Lalit Maganti
Mounir: Now that the dedupe CL is on it's way, this CL should be good ...
5 years, 2 months ago (2015-09-28 12:47:59 UTC) #2
mlamouri (slow - plz ping)
https://codereview.chromium.org/1360023005/diff/20001/third_party/WebKit/Source/modules/permissions/PermissionsCallback.cpp File third_party/WebKit/Source/modules/permissions/PermissionsCallback.cpp (right): https://codereview.chromium.org/1360023005/diff/20001/third_party/WebKit/Source/modules/permissions/PermissionsCallback.cpp#newcode21 third_party/WebKit/Source/modules/permissions/PermissionsCallback.cpp:21: void PermissionsCallback::onSuccess(WebPassOwnPtr<WebVector<WebPermissionStatus>> result) Could you keep the |permissionStatus| as ...
5 years, 2 months ago (2015-09-29 13:25:35 UTC) #3
mlamouri (slow - plz ping)
Oh, also, could you add more multiple request permissions with duplicates?
5 years, 2 months ago (2015-09-29 13:25:57 UTC) #4
Lalit Maganti
Do you mean in the tests? The tests got reverted. I need to track down ...
5 years, 2 months ago (2015-09-29 14:51:50 UTC) #5
mlamouri (slow - plz ping)
lgtm but needs a bunch of comments... and tests! https://codereview.chromium.org/1360023005/diff/40001/third_party/WebKit/Source/modules/permissions/Permissions.cpp File third_party/WebKit/Source/modules/permissions/Permissions.cpp (right): https://codereview.chromium.org/1360023005/diff/40001/third_party/WebKit/Source/modules/permissions/Permissions.cpp#newcode160 third_party/WebKit/Source/modules/permissions/Permissions.cpp:160: ...
5 years, 2 months ago (2015-09-29 18:00:07 UTC) #6
Lalit Maganti
Considering how hard it was for me to write the comments probably a very good ...
5 years, 2 months ago (2015-10-02 13:57:25 UTC) #7
mlamouri (slow - plz ping)
lgtm
5 years, 2 months ago (2015-10-02 14:28:08 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1360023005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1360023005/60001
5 years, 2 months ago (2015-10-02 14:28:30 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 2 months ago (2015-10-02 17:54:01 UTC) #11
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/b3d2e697dc79112379f96f0f34cf26b83227a737 Cr-Commit-Position: refs/heads/master@{#352072}
5 years, 2 months ago (2015-10-02 17:55:11 UTC) #12
dmurph
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/1381353002/ by dmurph@chromium.org. ...
5 years, 2 months ago (2015-10-02 20:16:25 UTC) #13
dmurph
5 years, 2 months ago (2015-10-02 20:17:14 UTC) #14
Message was sent while issue was closed.
On 2015/10/02 at 20:16:25, dmurph wrote:
> A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/1381353002/ by dmurph@chromium.org.
> 
> The reason for reverting is: BUG=538717.

This revert is needed before https://codereview.chromium.org/1381023003, which
was failing on Win7 bots.

Powered by Google App Engine
This is Rietveld 408576698