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

Issue 2732963005: Views/Permissions: Use shorter strings for site setting drop downs. (Closed)

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

Description

Views/Permissions: Use shorter strings for site setting drop downs. Drop-downs in the OIB typically show three options for each site setting - ask, allow, and block. For Harmony, shorter strings should be used in these drop downs. r453710 partly implemented the use of short strings for settings that were set to the default, but it also introduced a bug where it would show the incorrect string in place of the default option when there was a non-default option selected. (For example, when set to 'Allow', the default option that usually says 'Ask' would also say 'Allow', resulting in two 'Allow' options - one using the long string and one using the short.) Fix this bug and also start using short strings for all other site setting options. BUG=657292 Review-Url: https://codereview.chromium.org/2732963005 Cr-Commit-Position: refs/heads/master@{#455580} Committed: https://chromium.googlesource.com/chromium/src/+/4b0f801fa697ed48e8c2b7f1c0cd1407cacdd783

Patch Set 1 #

Total comments: 2

Patch Set 2 : Change all references to |info| in the constructor to references to |permission_| to be consistent. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -3 lines) Patch
M chrome/browser/ui/website_settings/permission_menu_model.cc View 1 4 chunks +15 lines, -2 lines 0 comments Download
M chrome/browser/ui/website_settings/website_settings_ui.h View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 24 (16 generated)
Patti Lor
Hi Raymes, PTAL - I ended up just adding extra comments as opposed to doing ...
3 years, 9 months ago (2017-03-07 05:35:59 UTC) #4
Patti Lor
+ellyjones@ - you probably have more context into this - PTAL? Thanks!
3 years, 9 months ago (2017-03-07 06:27:15 UTC) #6
Elly Fong-Jones
lgtm
3 years, 9 months ago (2017-03-07 16:24:22 UTC) #10
Patti Lor
Hi palmer@ - PTAL for owner's review of everything. raymes -> CC as discussed offline ...
3 years, 9 months ago (2017-03-07 22:57:45 UTC) #12
palmer
lgtm https://codereview.chromium.org/2732963005/diff/1/chrome/browser/ui/website_settings/permission_menu_model.cc File chrome/browser/ui/website_settings/permission_menu_model.cc (right): https://codereview.chromium.org/2732963005/diff/1/chrome/browser/ui/website_settings/permission_menu_model.cc#newcode109 chrome/browser/ui/website_settings/permission_menu_model.cc:109: // Retrieve the string to show for blocking ...
3 years, 9 months ago (2017-03-07 23:39:46 UTC) #13
Patti Lor
Thanks both for the reviews - I did update all the references to the PermissionInfo ...
3 years, 9 months ago (2017-03-08 06:58:41 UTC) #16
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/2732963005/20001
3 years, 9 months ago (2017-03-08 23:00:36 UTC) #21
commit-bot: I haz the power
3 years, 9 months ago (2017-03-08 23:09:22 UTC) #24
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/4b0f801fa697ed48e8c2b7f1c0cd...

Powered by Google App Engine
This is Rietveld 408576698