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

Issue 750633003: Implement HasPermission() method in PermissionService. (Closed)

Created:
6 years, 1 month ago by timvolodine
Modified:
5 years, 10 months ago
CC:
chromium-reviews, darin-cc_chromium.org, Miguel Garcia
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Implement HasPermission() method in PermissionService. This patch implements the HasPermission() method in the mojo PermissionService. This methiod will be required for the Permissions API, see https://w3c.github.io/permissions/ BUG=430238 Committed: https://crrev.com/277b23d74855b51ebe67ae0da7cd9e0b053044cf Cr-Commit-Position: refs/heads/master@{#307302} Committed: https://crrev.com/14570267ac4d5dc473d29f256e8d044e9bfcc8d2 Cr-Commit-Position: refs/heads/master@{#307504} Committed: https://crrev.com/089c07c966a9dc169f0822b90d92400bf23e19f7 Cr-Commit-Position: refs/heads/master@{#307948}

Patch Set 1 #

Total comments: 10

Patch Set 2 : fixed comments, switched to use BrowserContext, passing PermissionStatus in callback #

Total comments: 20

Patch Set 3 : Mounir's comments #

Patch Set 4 : fix compilation on android and windows bots #

Total comments: 2

Patch Set 5 : attempt to fix compile on iOS bots #

Patch Set 6 : tweak content.gyp #

Patch Set 7 : include content_common_mojo_bindings.gypi in content.gyp #

Total comments: 3

Patch Set 8 : try the content_app.gypi fix #

Patch Set 9 : add dependencies to test_support_content target in content_tests.gypi #

Patch Set 10 : try with different order in content_tests.gypi #

Patch Set 11 : add dependencies to content_shell_and_test #

Patch Set 12 : tweak all.gyp #

Patch Set 13 : tweak content_shell_and_tests #

Patch Set 14 : content_common export_dependent_settings #

Patch Set 15 : revert to a version with cleaner gypis #

Total comments: 4

Patch Set 16 : apply Colin's comments #

Patch Set 17 : add export_dependent_settings to content_app_both #

Patch Set 18 : consolidate export_dependent_settings in the content_common target #

Patch Set 19 : try including less #

Patch Set 20 : remove comment in content_tests.gypi #

Total comments: 2

Patch Set 21 : rebase + fix export_dependent_settings in content.gyp #

Patch Set 22 : rebase + add owners to browser/permissions #

Patch Set 23 : add dependency to content_app_both target #

Patch Set 24 : add export_dependent_settings to static content target #

Patch Set 25 : rebase for recheck bots #

Patch Set 26 : add dependencies for 2 more targets in content.gyp #

Patch Set 27 : move content_common_mojo_bindings dependency to content_browser.gypi #

Patch Set 28 : add dependencies to content_renderer and content_tests #

Patch Set 29 : add dependencies to content_app, content_child and content_ppapi_plugin #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -58 lines) Patch
M chrome/browser/chrome_content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 2 chunks +61 lines, -0 lines 0 comments Download
A content/browser/permissions/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/permissions/permission_service_context.h View 1 2 4 chunks +6 lines, -0 lines 0 comments Download
M content/browser/permissions/permission_service_context.cc View 1 2 3 chunks +23 lines, -1 line 0 comments Download
M content/browser/permissions/permission_service_impl.cc View 1 2 1 chunk +10 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +1 line, -1 line 0 comments Download
M content/common/permission_service.mojom View 1 2 1 chunk +1 line, -5 lines 0 comments Download
M content/content.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 5 chunks +0 lines, -9 lines 0 comments Download
M content/content_app.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 2 chunks +3 lines, -5 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 2 chunks +2 lines, -0 lines 0 comments Download
M content/content_child.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +1 line, -0 lines 0 comments Download
A + content/content_common_mojo_bindings.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +1 line, -0 lines 0 comments Download
M content/content_common_mojo_bindings.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +0 lines, -36 lines 0 comments Download
M content/content_ppapi_plugin.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +1 line, -0 lines 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +1 line, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 3 chunks +4 lines, -0 lines 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 2 chunks +7 lines, -0 lines 0 comments Download
M content/public/browser/content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +8 lines, -0 lines 0 comments Download
M content/public/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -0 lines 0 comments Download
A content/public/common/permission_status.mojom View 1 2 1 chunk +11 lines, -0 lines 1 comment Download

Messages

Total messages: 62 (10 generated)
timvolodine
6 years, 1 month ago (2014-11-21 18:39:39 UTC) #2
blundell
blundell -> qsr I'm going off on vacation for a week :).
6 years, 1 month ago (2014-11-21 20:19:46 UTC) #4
qsr
https://codereview.chromium.org/750633003/diff/1/content/browser/permissions/permission_service_impl.cc File content/browser/permissions/permission_service_impl.cc (right): https://codereview.chromium.org/750633003/diff/1/content/browser/permissions/permission_service_impl.cc#newcode61 content/browser/permissions/permission_service_impl.cc:61: // to obtain the profile. The previous comment is ...
6 years ago (2014-11-24 11:51:12 UTC) #5
mlamouri (slow - plz ping)
Tim and I discussed this CL face to face. For the sake of transparency, I ...
6 years ago (2014-11-24 16:01:19 UTC) #6
timvolodine
thanks for the comments. they should be fixed now. https://codereview.chromium.org/750633003/diff/1/chrome/browser/chrome_content_browser_client.h File chrome/browser/chrome_content_browser_client.h (right): https://codereview.chromium.org/750633003/diff/1/chrome/browser/chrome_content_browser_client.h#newcode202 chrome/browser/chrome_content_browser_client.h:202: ...
6 years ago (2014-11-24 18:54:22 UTC) #7
mlamouri (slow - plz ping)
It looks great! I have a few minor comments below. Hopefully, this will be ready ...
6 years ago (2014-11-24 19:06:01 UTC) #8
timvolodine
fixed comments, ptal! looks like the ios bots are still failing, qsr@, blundell@: any ideas ...
6 years ago (2014-11-27 17:53:42 UTC) #10
mlamouri (slow - plz ping)
lgtm w/ nits. Thanks! :) https://codereview.chromium.org/750633003/diff/80001/chrome/browser/chrome_content_browser_client.h File chrome/browser/chrome_content_browser_client.h (right): https://codereview.chromium.org/750633003/diff/80001/chrome/browser/chrome_content_browser_client.h#newcode200 chrome/browser/chrome_content_browser_client.h:200: virtual content::PermissionStatus GetPermissionStatus( nit: ...
6 years ago (2014-11-27 18:18:29 UTC) #11
timvolodine
+tsepez@ : for mojom files
6 years ago (2014-11-27 18:34:01 UTC) #13
qsr
> looks like the ios bots are still failing, > qsr@, blundell@: any ideas why ...
6 years ago (2014-11-28 08:45:08 UTC) #14
timvolodine
https://codereview.chromium.org/750633003/diff/80001/chrome/browser/chrome_content_browser_client.h File chrome/browser/chrome_content_browser_client.h (right): https://codereview.chromium.org/750633003/diff/80001/chrome/browser/chrome_content_browser_client.h#newcode200 chrome/browser/chrome_content_browser_client.h:200: virtual content::PermissionStatus GetPermissionStatus( On 2014/11/27 18:18:29, Mounir Lamouri wrote: ...
6 years ago (2014-11-28 14:49:19 UTC) #15
timvolodine
ok I've tweaked content.gyp a bit, but get the same issue on iOS bots: ../content/public/browser/content_browser_client.h:23:10: ...
6 years ago (2014-11-28 14:50:05 UTC) #16
qsr
On 2014/11/28 14:50:05, timvolodine wrote: > ok I've tweaked content.gyp a bit, but get the ...
6 years ago (2014-11-28 15:09:54 UTC) #17
Tom Sepez
Messages LGTM https://codereview.chromium.org/750633003/diff/140001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/750633003/diff/140001/chrome/browser/chrome_content_browser_client.cc#newcode597 chrome/browser/chrome_content_browser_client.cc:597: content::PermissionStatus nit: The style guide would say ...
6 years ago (2014-12-01 18:42:38 UTC) #18
blundell
For the iOS issue, I think you need to move the mojo dependencies in content_app.gypi ...
6 years ago (2014-12-02 09:14:08 UTC) #19
timvolodine
On 2014/12/02 09:14:08, blundell wrote: > For the iOS issue, I think you need to ...
6 years ago (2014-12-02 14:35:42 UTC) #20
blundell
On 2014/12/02 14:35:42, timvolodine wrote: > On 2014/12/02 09:14:08, blundell wrote: > > For the ...
6 years ago (2014-12-02 14:44:30 UTC) #21
timvolodine
On 2014/12/02 14:44:30, blundell wrote: > On 2014/12/02 14:35:42, timvolodine wrote: > > On 2014/12/02 ...
6 years ago (2014-12-02 18:18:14 UTC) #22
mlamouri (slow - plz ping)
Colin and Benjamin, do you think someone from the iOS team in Paris can have ...
6 years ago (2014-12-02 22:51:43 UTC) #23
blundell
On 2014/12/02 22:51:43, Mounir Lamouri wrote: > Colin and Benjamin, do you think someone from ...
6 years ago (2014-12-03 11:21:22 UTC) #24
timvolodine
On 2014/12/03 11:21:22, blundell wrote: > On 2014/12/02 22:51:43, Mounir Lamouri wrote: > > Colin ...
6 years ago (2014-12-03 12:14:16 UTC) #25
blundell
I've repro'd the build problem, looking into it now.
6 years ago (2014-12-03 13:56:20 UTC) #26
blundell
Hi Tim, The build fails flakily, indicating that there's a missing hard_dependency somewhere along the ...
6 years ago (2014-12-03 15:43:46 UTC) #27
timvolodine
https://codereview.chromium.org/750633003/diff/300001/content/content.gyp File content/content.gyp (right): https://codereview.chromium.org/750633003/diff/300001/content/content.gyp#newcode165 content/content.gyp:165: 'content_common', On 2014/12/03 15:43:45, blundell wrote: > You should ...
6 years ago (2014-12-03 19:23:34 UTC) #28
timvolodine
On 2014/12/03 15:43:46, blundell wrote: > Hi Tim, > > The build fails flakily, indicating ...
6 years ago (2014-12-03 19:26:20 UTC) #29
timvolodine
+avi@ : as content/ owner
6 years ago (2014-12-03 19:28:56 UTC) #31
blundell
https://codereview.chromium.org/750633003/diff/400001/content/content.gyp File content/content.gyp (right): https://codereview.chromium.org/750633003/diff/400001/content/content.gyp#newcode196 content/content.gyp:196: 'content_common_mojo_bindings', This isn't technically correct, since no code under ...
6 years ago (2014-12-04 12:21:44 UTC) #32
timvolodine
https://codereview.chromium.org/750633003/diff/400001/content/content.gyp File content/content.gyp (right): https://codereview.chromium.org/750633003/diff/400001/content/content.gyp#newcode196 content/content.gyp:196: 'content_common_mojo_bindings', On 2014/12/04 12:21:44, blundell wrote: > This isn't ...
6 years ago (2014-12-04 12:58:01 UTC) #33
blundell
On 2014/12/04 12:58:01, timvolodine wrote: > https://codereview.chromium.org/750633003/diff/400001/content/content.gyp > File content/content.gyp (right): > > https://codereview.chromium.org/750633003/diff/400001/content/content.gyp#newcode196 > ...
6 years ago (2014-12-04 13:02:23 UTC) #34
timvolodine
On 2014/12/04 13:02:23, blundell wrote: > On 2014/12/04 12:58:01, timvolodine wrote: > > https://codereview.chromium.org/750633003/diff/400001/content/content.gyp > ...
6 years ago (2014-12-04 14:51:50 UTC) #35
blundell
those changes lgtm, but please wait for Chris' response on https://codereview.chromium.org/743093004/ before landing the removal ...
6 years ago (2014-12-04 14:58:58 UTC) #36
timvolodine
On 2014/12/04 14:58:58, blundell wrote: > those changes lgtm, but please wait for Chris' response ...
6 years ago (2014-12-05 12:23:27 UTC) #37
Avi (use Gerrit)
I don't know anything about that Mojo stuff, but the content stuff lgtm.
6 years ago (2014-12-05 15:44:01 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/750633003/480001
6 years ago (2014-12-08 18:30:09 UTC) #40
commit-bot: I haz the power
Committed patchset #24 (id:480001)
6 years ago (2014-12-08 19:23:12 UTC) #41
commit-bot: I haz the power
Patchset 24 (id:??) landed as https://crrev.com/277b23d74855b51ebe67ae0da7cd9e0b053044cf Cr-Commit-Position: refs/heads/master@{#307302}
6 years ago (2014-12-08 19:24:05 UTC) #42
Ryan Sleevi
A revert of this CL (patchset #24 id:480001) has been created in https://codereview.chromium.org/786063002/ by rsleevi@chromium.org. ...
6 years ago (2014-12-08 19:40:13 UTC) #43
timvolodine
On 2014/12/08 19:40:13, Ryan Sleevi wrote: > A revert of this CL (patchset #24 id:480001) ...
6 years ago (2014-12-09 17:17:44 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/750633003/580001
6 years ago (2014-12-09 17:18:57 UTC) #47
commit-bot: I haz the power
Committed patchset #28 (id:580001)
6 years ago (2014-12-09 18:18:52 UTC) #48
commit-bot: I haz the power
Patchset 28 (id:??) landed as https://crrev.com/14570267ac4d5dc473d29f256e8d044e9bfcc8d2 Cr-Commit-Position: refs/heads/master@{#307504}
6 years ago (2014-12-09 18:19:40 UTC) #49
Nico
A revert of this CL (patchset #28 id:580001) has been created in https://codereview.chromium.org/792173002/ by thakis@chromium.org. ...
6 years ago (2014-12-10 21:27:06 UTC) #50
timvolodine
On 2014/12/10 21:27:06, Nico wrote: > A revert of this CL (patchset #28 id:580001) has ...
6 years ago (2014-12-11 18:16:58 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/750633003/600001
6 years ago (2014-12-11 18:18:23 UTC) #53
commit-bot: I haz the power
Committed patchset #29 (id:600001)
6 years ago (2014-12-11 19:32:34 UTC) #54
commit-bot: I haz the power
Patchset 29 (id:??) landed as https://crrev.com/089c07c966a9dc169f0822b90d92400bf23e19f7 Cr-Commit-Position: refs/heads/master@{#307948}
6 years ago (2014-12-11 19:33:17 UTC) #55
xhwang
https://codereview.chromium.org/750633003/diff/600001/content/public/common/permission_status.mojom File content/public/common/permission_status.mojom (right): https://codereview.chromium.org/750633003/diff/600001/content/public/common/permission_status.mojom#newcode10 content/public/common/permission_status.mojom:10: ASK What does "ASK" exactly mean here? If a ...
5 years, 11 months ago (2015-01-21 06:52:24 UTC) #57
mlamouri (slow - plz ping)
On 2015/01/21 at 06:52:24, xhwang wrote: > https://codereview.chromium.org/750633003/diff/600001/content/public/common/permission_status.mojom > File content/public/common/permission_status.mojom (right): > > https://codereview.chromium.org/750633003/diff/600001/content/public/common/permission_status.mojom#newcode10 ...
5 years, 11 months ago (2015-01-21 10:00:48 UTC) #58
xhwang
On 2015/01/21 10:00:48, Mounir Lamouri wrote: > On 2015/01/21 at 06:52:24, xhwang wrote: > > ...
5 years, 11 months ago (2015-01-21 18:49:59 UTC) #59
xhwang
On 2015/01/21 18:49:59, xhwang wrote: > On 2015/01/21 10:00:48, Mounir Lamouri wrote: > > On ...
5 years, 11 months ago (2015-01-21 18:53:25 UTC) #60
jam
this is still causing compile failures, i.e. http://build.chromium.org/p/chromium/builders/Mac/builds/33023/steps/compile/logs/stdio
5 years, 10 months ago (2015-02-02 17:44:51 UTC) #61
timvolodine
5 years, 10 months ago (2015-02-02 17:53:53 UTC) #62
Message was sent while issue was closed.
On 2015/02/02 17:44:51, jam wrote:
> this is still causing compile failures, i.e.
>
http://build.chromium.org/p/chromium/builders/Mac/builds/33023/steps/compile/...

hmm apparently the mac build is flaky, filed crbug.com/454447 will investigate.

Powered by Google App Engine
This is Rietveld 408576698