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

Issue 2376893002: Change PermissionContextBase to always return CONTENT_SETTING_ASK if a user dismisses the prompt (Closed)

Created:
4 years, 2 months ago by raymes
Modified:
4 years, 2 months ago
Reviewers:
dominickn
CC:
chromium-reviews, mlamouri+watch-permissions_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change PermissionContextBase to always return CONTENT_SETTING_ASK if a user dismisses the prompt Currently if a user dismisses the prompt, we will return the default value for the content setting related to that prompt. Right now this will always be CONTENT_SETTING_ASK for all settings that have a prompt. With flash (which we are adding a prompt for) the default setting is DETECT. However it seems to be more consistent and easier to reason about to always return ASK in this case and the caller of the API can respond appropriately. BUG=650825 Committed: https://crrev.com/423d965fe94116587295cffe206e7c6372494d7e Cr-Commit-Position: refs/heads/master@{#421696}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -6 lines) Patch
M chrome/browser/permissions/permission_context_base.cc View 1 chunk +2 lines, -6 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
raymes
Hey Dom, ptal. This fixes the crash mentioned in the associated bug. The test in ...
4 years, 2 months ago (2016-09-28 02:11:49 UTC) #2
dominickn
lgtm
4 years, 2 months ago (2016-09-28 07:05:20 UTC) #3
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/2376893002/1
4 years, 2 months ago (2016-09-28 23:21:37 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-09-29 00:47:30 UTC) #6
commit-bot: I haz the power
4 years, 2 months ago (2016-09-29 00:53:49 UTC) #8
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/423d965fe94116587295cffe206e7c6372494d7e
Cr-Commit-Position: refs/heads/master@{#421696}

Powered by Google App Engine
This is Rietveld 408576698