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

Issue 2884813003: [subresource_filter] Add custom strings/behavior on Desktop Page Info (Closed)

Created:
3 years, 7 months ago by Charlie Harrison
Modified:
3 years, 7 months ago
Reviewers:
lgarron, raymes
CC:
chromium-reviews, lgarron+watch_chromium.org, raymes+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[subresource_filter] Add custom strings/behavior on Desktop Page Info This CL adds the following to the OIB (Page Info): - The menu only has two items (no default), with custom strings - The selected text uses user managed strings instead of default string (e.g. "Block" instead of "Block (default)" BUG=689487 Review-Url: https://codereview.chromium.org/2884813003 Cr-Commit-Position: refs/heads/master@{#473704} Committed: https://chromium.googlesource.com/chromium/src/+/e2aed4aa8b104427ef7568065d19606d8e0dc16e

Patch Set 1 #

Patch Set 2 : Add a unit test #

Total comments: 9

Patch Set 3 : raymes review #

Total comments: 6

Patch Set 4 : raymes review #

Patch Set 5 : remove Allow string #

Total comments: 2

Patch Set 6 : lgarron review #

Patch Set 7 : add period #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -1 line) Patch
M chrome/browser/ui/page_info/page_info_ui.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/page_info/permission_menu_model.cc View 1 2 3 4 5 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/ui/page_info/permission_menu_model_unittest.cc View 1 1 chunk +17 lines, -0 lines 0 comments Download
M components/page_info_strings.grdp View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 5 comments Download

Messages

Total messages: 51 (29 generated)
Charlie Harrison
lgarron, raymes: would you take a look please? Thanks!
3 years, 7 months ago (2017-05-15 21:58:17 UTC) #6
raymes
> "Allow" instead of "Allow (default)" Wouldn't "Block" be the default here? Or was this ...
3 years, 7 months ago (2017-05-15 23:22:38 UTC) #7
raymes
https://codereview.chromium.org/2884813003/diff/20001/chrome/browser/ui/page_info/page_info_ui.cc File chrome/browser/ui/page_info/page_info_ui.cc (right): https://codereview.chromium.org/2884813003/diff/20001/chrome/browser/ui/page_info/page_info_ui.cc#newcode294 chrome/browser/ui/page_info/page_info_ui.cc:294: button_text_ids = kPermissionButtonTextIDUserManaged; nit: Is this needed? I don't ...
3 years, 7 months ago (2017-05-15 23:41:21 UTC) #10
raymes
https://codereview.chromium.org/2884813003/diff/20001/chrome/browser/ui/page_info/page_info_ui.cc File chrome/browser/ui/page_info/page_info_ui.cc (right): https://codereview.chromium.org/2884813003/diff/20001/chrome/browser/ui/page_info/page_info_ui.cc#newcode294 chrome/browser/ui/page_info/page_info_ui.cc:294: button_text_ids = kPermissionButtonTextIDUserManaged; On 2017/05/15 23:41:21, raymes wrote: > ...
3 years, 7 months ago (2017-05-15 23:43:40 UTC) #11
Charlie Harrison
https://codereview.chromium.org/2884813003/diff/20001/chrome/browser/ui/page_info/page_info_ui.cc File chrome/browser/ui/page_info/page_info_ui.cc (right): https://codereview.chromium.org/2884813003/diff/20001/chrome/browser/ui/page_info/page_info_ui.cc#newcode294 chrome/browser/ui/page_info/page_info_ui.cc:294: button_text_ids = kPermissionButtonTextIDUserManaged; On 2017/05/15 23:43:39, raymes wrote: > ...
3 years, 7 months ago (2017-05-16 01:47:26 UTC) #13
raymes
lgarron: note the special casing here which you may not be too excited about :( ...
3 years, 7 months ago (2017-05-16 06:19:51 UTC) #18
Charlie Harrison
https://codereview.chromium.org/2884813003/diff/20001/chrome/browser/ui/page_info/permission_menu_model.cc File chrome/browser/ui/page_info/permission_menu_model.cc (right): https://codereview.chromium.org/2884813003/diff/20001/chrome/browser/ui/page_info/permission_menu_model.cc#newcode99 chrome/browser/ui/page_info/permission_menu_model.cc:99: label = l10n_util::GetStringUTF16(IDS_PAGE_INFO_SUBRESOURCE_FILTER_ALLOW); On 2017/05/16 06:19:51, raymes wrote: > ...
3 years, 7 months ago (2017-05-16 12:10:14 UTC) #19
lgarron
Special-casing does make me sad, but I defer to raymes@ on c/b/ui/page_info for this CL. ...
3 years, 7 months ago (2017-05-16 20:59:35 UTC) #24
Charlie Harrison
https://codereview.chromium.org/2884813003/diff/40001/components/page_info_strings.grdp File components/page_info_strings.grdp (right): https://codereview.chromium.org/2884813003/diff/40001/components/page_info_strings.grdp#newcode263 components/page_info_strings.grdp:263: <message name="IDS_PAGE_INFO_SUBRESOURCE_FILTER_ALLOW" desc="The text of the menu item of ...
3 years, 7 months ago (2017-05-16 21:04:42 UTC) #25
raymes
lgtm https://codereview.chromium.org/2884813003/diff/40001/chrome/browser/ui/page_info/permission_menu_model.cc File chrome/browser/ui/page_info/permission_menu_model.cc (right): https://codereview.chromium.org/2884813003/diff/40001/chrome/browser/ui/page_info/permission_menu_model.cc#newcode99 chrome/browser/ui/page_info/permission_menu_model.cc:99: label = l10n_util::GetStringUTF16(IDS_PAGE_INFO_SUBRESOURCE_FILTER_ALLOW); Let's move this up above ...
3 years, 7 months ago (2017-05-17 00:39:12 UTC) #26
Charlie Harrison
Thanks raymes! lgarron: Could you PTAL at page_info_strings? https://codereview.chromium.org/2884813003/diff/40001/chrome/browser/ui/page_info/permission_menu_model.cc File chrome/browser/ui/page_info/permission_menu_model.cc (right): https://codereview.chromium.org/2884813003/diff/40001/chrome/browser/ui/page_info/permission_menu_model.cc#newcode99 chrome/browser/ui/page_info/permission_menu_model.cc:99: label ...
3 years, 7 months ago (2017-05-17 14:06:08 UTC) #29
Charlie Harrison
Looks like the string issue was resolved, so I'll remove the Allow string in a ...
3 years, 7 months ago (2017-05-17 14:26:12 UTC) #30
Charlie Harrison
OK I've removed the Allow string per discussion. PTAL?
3 years, 7 months ago (2017-05-17 16:07:49 UTC) #34
lgarron
https://codereview.chromium.org/2884813003/diff/80001/components/page_info_strings.grdp File components/page_info_strings.grdp (right): https://codereview.chromium.org/2884813003/diff/80001/components/page_info_strings.grdp#newcode263 components/page_info_strings.grdp:263: <message name="IDS_PAGE_INFO_SUBRESOURCE_FILTER_BLOCK" desc="The text of the menu item of ...
3 years, 7 months ago (2017-05-17 20:16:45 UTC) #38
Charlie Harrison
Thanks lgarron! https://codereview.chromium.org/2884813003/diff/80001/components/page_info_strings.grdp File components/page_info_strings.grdp (right): https://codereview.chromium.org/2884813003/diff/80001/components/page_info_strings.grdp#newcode263 components/page_info_strings.grdp:263: <message name="IDS_PAGE_INFO_SUBRESOURCE_FILTER_BLOCK" desc="The text of the menu ...
3 years, 7 months ago (2017-05-17 20:26:03 UTC) #40
lgarron
LGTM; thanks for your patience with the strings! https://codereview.chromium.org/2884813003/diff/120001/components/page_info_strings.grdp File components/page_info_strings.grdp (right): https://codereview.chromium.org/2884813003/diff/120001/components/page_info_strings.grdp#newcode263 components/page_info_strings.grdp:263: <!-- ...
3 years, 7 months ago (2017-05-17 20:27:23 UTC) #41
Charlie Harrison
https://codereview.chromium.org/2884813003/diff/120001/components/page_info_strings.grdp File components/page_info_strings.grdp (right): https://codereview.chromium.org/2884813003/diff/120001/components/page_info_strings.grdp#newcode263 components/page_info_strings.grdp:263: <!-- IDS_PAGE_INFO_MENU_ITEM_SUBRESOURCE_FILTER_BLOCK is currently the same as IDS_PAGE_INFO_MENU_ITEM_BLOCK, but ...
3 years, 7 months ago (2017-05-17 20:29:49 UTC) #42
Charlie Harrison
https://codereview.chromium.org/2884813003/diff/120001/components/page_info_strings.grdp File components/page_info_strings.grdp (right): https://codereview.chromium.org/2884813003/diff/120001/components/page_info_strings.grdp#newcode263 components/page_info_strings.grdp:263: <!-- IDS_PAGE_INFO_MENU_ITEM_SUBRESOURCE_FILTER_BLOCK is currently the same as IDS_PAGE_INFO_MENU_ITEM_BLOCK, but ...
3 years, 7 months ago (2017-05-22 17:03:56 UTC) #43
lgarron
lgtm https://codereview.chromium.org/2884813003/diff/120001/components/page_info_strings.grdp File components/page_info_strings.grdp (right): https://codereview.chromium.org/2884813003/diff/120001/components/page_info_strings.grdp#newcode263 components/page_info_strings.grdp:263: <!-- IDS_PAGE_INFO_MENU_ITEM_SUBRESOURCE_FILTER_BLOCK is currently the same as IDS_PAGE_INFO_MENU_ITEM_BLOCK, ...
3 years, 7 months ago (2017-05-22 20:09:32 UTC) #44
Charlie Harrison
https://codereview.chromium.org/2884813003/diff/120001/components/page_info_strings.grdp File components/page_info_strings.grdp (right): https://codereview.chromium.org/2884813003/diff/120001/components/page_info_strings.grdp#newcode263 components/page_info_strings.grdp:263: <!-- IDS_PAGE_INFO_MENU_ITEM_SUBRESOURCE_FILTER_BLOCK is currently the same as IDS_PAGE_INFO_MENU_ITEM_BLOCK, but ...
3 years, 7 months ago (2017-05-22 20:10:15 UTC) #45
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/2884813003/120001
3 years, 7 months ago (2017-05-22 20:10:42 UTC) #48
commit-bot: I haz the power
3 years, 7 months ago (2017-05-22 21:35:29 UTC) #51
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/e2aed4aa8b104427ef7568065d19...

Powered by Google App Engine
This is Rietveld 408576698