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

Issue 819463002: Implement RevokePermission() method in PermissionService. (Closed)

Created:
6 years ago by timvolodine
Modified:
5 years, 10 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, jam, markusheintz_, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement RevokePermission() method in PermissionService. This patch implements RevokePermission() method in the mojo PermissionService. This method will probably be for internal use only for now. The semantics of the method is that it will reset the permission to its default value in chrome if the permission is currently granted. BUG=430238 Committed: https://crrev.com/16be5206de6f956a55542a4c65d163591373c34c Cr-Commit-Position: refs/heads/master@{#314163}

Patch Set 1 #

Total comments: 6

Patch Set 2 : address some of Mounir's comments #

Patch Set 3 : rebase, fix more comments, fix tests #

Total comments: 6

Patch Set 4 : rebase, fix comments #

Patch Set 5 : rebase once more #

Patch Set 6 : fix compile #

Patch Set 7 : fix compile on android #

Patch Set 8 : add crbug references #

Total comments: 2

Patch Set 9 : rebase, fix todo comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -43 lines) Patch
M chrome/browser/chrome_content_browser_client.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 2 chunks +51 lines, -36 lines 0 comments Download
M chrome/browser/content_settings/permission_context_base.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/content_settings/permission_context_base.cc View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/content_settings/permission_context_base_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +78 lines, -2 lines 0 comments Download
M content/browser/permissions/permission_service_impl.h View 1 2 chunks +7 lines, -0 lines 0 comments Download
M content/browser/permissions/permission_service_impl.cc View 1 2 3 4 1 chunk +33 lines, -5 lines 0 comments Download
M content/common/permission_service.mojom View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (6 generated)
timvolodine
6 years ago (2014-12-18 19:40:14 UTC) #2
mlamouri (slow - plz ping)
It looks good but it is missing unit tests. Regarding the naming, I agree that ...
6 years ago (2014-12-19 13:08:03 UTC) #3
timvolodine
thanks for the comments Mounir! I think I've addressed all of them and added some ...
5 years, 11 months ago (2015-01-22 19:37:01 UTC) #4
mlamouri (slow - plz ping)
lgtm with the comments addressed. https://codereview.chromium.org/819463002/diff/40001/chrome/browser/content_settings/permission_context_base.cc File chrome/browser/content_settings/permission_context_base.cc (right): https://codereview.chromium.org/819463002/diff/40001/chrome/browser/content_settings/permission_context_base.cc#newcode224 chrome/browser/content_settings/permission_context_base.cc:224: allowed ? CONTENT_SETTING_ALLOW : ...
5 years, 11 months ago (2015-01-26 10:38:17 UTC) #5
timvolodine
thanks Mounir, I've addressed your comments. https://codereview.chromium.org/819463002/diff/40001/chrome/browser/content_settings/permission_context_base.cc File chrome/browser/content_settings/permission_context_base.cc (right): https://codereview.chromium.org/819463002/diff/40001/chrome/browser/content_settings/permission_context_base.cc#newcode224 chrome/browser/content_settings/permission_context_base.cc:224: allowed ? CONTENT_SETTING_ALLOW ...
5 years, 10 months ago (2015-01-30 14:07:47 UTC) #6
timvolodine
+avi for chrome/browser/content_settings/* content/public/browser/content_browser_client.h
5 years, 10 months ago (2015-01-30 14:09:13 UTC) #8
timvolodine
+tsepez@ for content/common/permission_service.mojom
5 years, 10 months ago (2015-01-30 14:10:57 UTC) #10
timvolodine
hmm actually +thakis@ : for the chrome/browser/content_settings/* bits
5 years, 10 months ago (2015-01-30 14:18:48 UTC) #12
Tom Sepez
.mojom LGTM
5 years, 10 months ago (2015-01-30 17:17:39 UTC) #13
Nico
https://codereview.chromium.org/819463002/diff/140001/chrome/browser/content_settings/permission_context_base_unittest.cc File chrome/browser/content_settings/permission_context_base_unittest.cc (right): https://codereview.chromium.org/819463002/diff/140001/chrome/browser/content_settings/permission_context_base_unittest.cc#newcode289 chrome/browser/content_settings/permission_context_base_unittest.cc:289: #if defined(OS_ANDROID) This is the same TODO as in ...
5 years, 10 months ago (2015-01-30 17:32:34 UTC) #14
timvolodine
https://codereview.chromium.org/819463002/diff/140001/chrome/browser/content_settings/permission_context_base_unittest.cc File chrome/browser/content_settings/permission_context_base_unittest.cc (right): https://codereview.chromium.org/819463002/diff/140001/chrome/browser/content_settings/permission_context_base_unittest.cc#newcode289 chrome/browser/content_settings/permission_context_base_unittest.cc:289: #if defined(OS_ANDROID) On 2015/01/30 17:32:34, Nico wrote: > This ...
5 years, 10 months ago (2015-02-02 12:25:54 UTC) #15
timvolodine
Avi : could you rubber-stamp content/public/browser/content_browser_client.h please?
5 years, 10 months ago (2015-02-02 12:27:42 UTC) #16
timvolodine
apparently Avi is out today, jam@: could you stamp content_browser_client.h?
5 years, 10 months ago (2015-02-02 16:55:42 UTC) #18
Avi (use Gerrit)
lgtm stampity stamp
5 years, 10 months ago (2015-02-02 17:09:46 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/819463002/160001
5 years, 10 months ago (2015-02-02 17:29:28 UTC) #21
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 10 months ago (2015-02-02 17:45:23 UTC) #22
commit-bot: I haz the power
5 years, 10 months ago (2015-02-02 17:47:19 UTC) #23
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/16be5206de6f956a55542a4c65d163591373c34c
Cr-Commit-Position: refs/heads/master@{#314163}

Powered by Google App Engine
This is Rietveld 408576698