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

Issue 2446863002: Revert of Add threadsafe version of PermissionManager::GetPermissionStatus (Closed)

Created:
4 years, 1 month ago by dougt
Modified:
4 years, 1 month ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of Add threadsafe version of PermissionManager::GetPermissionStatus (patchset #5 id:80001 of https://codereview.chromium.org/2439673004/ ) Reason for revert: Going to address a number of issues that Raymes pointed out including: 1) It's unclear the purpose the overloaded GetPermissionStatus function (see https://google.github.io/styleguide/cppguide.html#Function_Overloading). It could be good to name it something that reflects its usage from a background thread. 2) In PermissionManager, it's unclear that it is threadsafe while the rest of the class isn't - we should add a comment. 3) It's unclear why HostContentSettingsMap needs to be passed in - it's already available in the PermissionContextBase. 4) I feel like it would be better to leave the default implementation empty in the PermissionContextBase and have NOTREACHED. Then if someone really wants to support querying a permission safely from a background thread, they have to think about it. Original issue's description: > Add threadsafe version of PermissionManager::GetPermissionStatus > > Add a version of GetPermissionStatus that takes a host_content_settings_map. > This method is guaranteed to be threadsafe. > > BUG=658020 > > R=jochen, mlamouri > > Committed: https://crrev.com/d6b19d48cf91f89c1ec414485b781f2ef2434521 > Cr-Commit-Position: refs/heads/master@{#427078} TBR=mlamouri@chromium.org,jochen@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=658020 Committed: https://crrev.com/c7d2c5a9df56e9a3a2cacc23fcb07ae93870d7b6 Cr-Commit-Position: refs/heads/master@{#427189}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -83 lines) Patch
M chrome/browser/permissions/permission_context_base.h View 3 chunks +0 lines, -9 lines 0 comments Download
M chrome/browser/permissions/permission_context_base.cc View 2 chunks +4 lines, -11 lines 0 comments Download
M chrome/browser/permissions/permission_manager.h View 2 chunks +0 lines, -8 lines 0 comments Download
M chrome/browser/permissions/permission_manager.cc View 1 chunk +0 lines, -16 lines 0 comments Download
M chrome/browser/permissions/permission_manager_unittest.cc View 4 chunks +9 lines, -39 lines 0 comments Download

Messages

Total messages: 16 (7 generated)
dougt
Created Revert of Add threadsafe version of PermissionManager::GetPermissionStatus
4 years, 1 month ago (2016-10-25 00:06:38 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2446863002/1
4 years, 1 month ago (2016-10-25 00:07:32 UTC) #3
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years, 1 month ago (2016-10-25 00:07:34 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2446863002/1
4 years, 1 month ago (2016-10-25 00:31:15 UTC) #7
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years, 1 month ago (2016-10-25 00:31:16 UTC) #9
raymes
lgtm
4 years, 1 month ago (2016-10-25 00:33:58 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2446863002/1
4 years, 1 month ago (2016-10-25 00:34:42 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-10-25 00:36:37 UTC) #14
commit-bot: I haz the power
4 years, 1 month ago (2016-10-25 00:40:40 UTC) #16
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/c7d2c5a9df56e9a3a2cacc23fcb07ae93870d7b6
Cr-Commit-Position: refs/heads/master@{#427189}

Powered by Google App Engine
This is Rietveld 408576698