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

Issue 2743423004: Permissions: Show the reason for permission decisions made on the user's behalf. (Closed)

Created:
3 years, 9 months ago by Patti Lor
Modified:
3 years, 8 months ago
CC:
chrome-apps-syd-reviews_chromium.org, chromium-reviews, markusheintz_, msramek+watch_chromium.org, raymes+watch_chromium.org, srahim+watch_chromium.org, tfarina
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Permissions: Show the reason for permission decisions made on the user's behalf. A decision for a permission may be allowed or blocked on behalf of the user, either from one of the user's installed extensions, enforced by an enterprise policy, or via embargo. Currently, the former two reasons (extensions or policy) will be indicated to the user by custom strings in the menubutton or combobox associated with that permission in the website settings pop-up. This patch will put the reason for a permission decision being made underneath a permission in gray text and add strings to tell if the permission was blocked because of embargo for Views and Cocoa (Mac). See https://docs.google.com/document/d/1TaoszQOgqhoxZkV1zAHDapam-LIOxGBIUfqU6npoPWs/edit?usp=sharing for the relevant document and screenshots. BUG=679877 TEST=For the embargo string: Run Chrome with the command line flag --enable-features=BlockPromptsIfDismissedOften. Navigate to https://permission.site. Click the "Notifications" button and press escape, and repeat this three times in a row until the permission prompt no longer appears. Opening the page info bubble should show the text "Automatically blocked" underneath the "Notification" permission. For the extensions string: Run Chrome and install the "Toggle Javascript" extension. Click on the icon to enable it, then open page info. Underneath Javascript, it should say "Controlled by an extension". For the policy string: No easy way to test this cross-platform. Review-Url: https://codereview.chromium.org/2743423004 Cr-Commit-Position: refs/heads/master@{#461944} Committed: https://chromium.googlesource.com/chromium/src/+/217bb29f809ae73e537ec9c0eba5ac65f48fd873

Patch Set 1 #

Patch Set 2 : Rebase back onto origin/master. #

Patch Set 3 : Cleanup. #

Patch Set 4 : Update to work for Mac as well. #

Patch Set 5 : Rebase. #

Patch Set 6 : Rebase againnn #

Total comments: 14

Patch Set 7 : Rebase with review comments. #

Total comments: 22

Patch Set 8 : Review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -70 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 2 chunks +9 lines, -15 lines 0 comments Download
M chrome/browser/ui/cocoa/page_info/page_info_bubble_controller.mm View 1 2 3 4 5 6 7 2 chunks +23 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/page_info/page_info_bubble_controller_unittest.mm View 1 2 3 4 5 6 4 chunks +38 lines, -20 lines 0 comments Download
M chrome/browser/ui/page_info/page_info_ui.h View 1 2 3 4 5 6 7 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/page_info/page_info_ui.cc View 1 2 3 4 5 6 7 4 chunks +51 lines, -34 lines 0 comments Download
M chrome/browser/ui/views/page_info/permission_selector_row.cc View 1 2 3 4 5 6 7 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 57 (42 generated)
Patti Lor
Hi Dom, PTAL?
3 years, 9 months ago (2017-03-15 06:07:27 UTC) #27
dominickn
Looks pretty good, I just have nits. We'll need to follow up to make sure ...
3 years, 9 months ago (2017-03-26 23:46:24 UTC) #28
Patti Lor
Hey Dom, PTAL - soz for the wait, had to rebase again. https://codereview.chromium.org/2743423004/diff/100001/chrome/browser/ui/cocoa/page_info/website_settings_bubble_controller.mm File chrome/browser/ui/cocoa/page_info/website_settings_bubble_controller.mm ...
3 years, 9 months ago (2017-03-27 05:52:41 UTC) #33
dominickn
non-OWNER lgtm, thanks!
3 years, 8 months ago (2017-03-28 02:49:06 UTC) #34
Patti Lor
Hi lgarron, PTAL for owner's review? Thank you!
3 years, 8 months ago (2017-03-28 03:22:01 UTC) #36
lgarron
+rsesek@ for Cocoa and msw@ for Views. Looks pretty reasonable overall (and looks good in ...
3 years, 8 months ago (2017-03-29 05:49:26 UTC) #38
Patti Lor
Thanks for the review, PTAL. https://codereview.chromium.org/2743423004/diff/120001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/2743423004/diff/120001/chrome/app/generated_resources.grd#newcode281 chrome/app/generated_resources.grd:281: + <message name="IDS_WEBSITE_SETTINGS_PERMISSION_SET_BY_POLICY" desc="The ...
3 years, 8 months ago (2017-03-30 03:27:29 UTC) #42
Robert Sesek
cocoa/ LGTM
3 years, 8 months ago (2017-03-30 20:09:24 UTC) #45
msw
views lgtm
3 years, 8 months ago (2017-03-30 20:19:48 UTC) #46
Patti Lor
Ping for lgarron - are you fine with everything here? I've updated the CL description ...
3 years, 8 months ago (2017-04-03 04:29:08 UTC) #48
lgarron
LGTM, although I filed a follow-up bug for myself about font sizes. https://codereview.chromium.org/2743423004/diff/120001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd ...
3 years, 8 months ago (2017-04-05 00:37:47 UTC) #49
dominickn
Thanks for all the details-oriented assistance here lgarron! :)
3 years, 8 months ago (2017-04-05 01:02:04 UTC) #50
Patti Lor
Thanks all for the reviews! https://codereview.chromium.org/2743423004/diff/120001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/2743423004/diff/120001/chrome/app/generated_resources.grd#newcode281 chrome/app/generated_resources.grd:281: + <message name="IDS_WEBSITE_SETTINGS_PERMISSION_SET_BY_POLICY" desc="The ...
3 years, 8 months ago (2017-04-05 01:02:43 UTC) #51
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/2743423004/140001
3 years, 8 months ago (2017-04-05 01:05:16 UTC) #54
commit-bot: I haz the power
3 years, 8 months ago (2017-04-05 02:29:05 UTC) #57
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/217bb29f809ae73e537ec9c0eba5...

Powered by Google App Engine
This is Rietveld 408576698