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

Issue 2627153007: Fix styling of Form-Not-Secure warnings on Android (Closed)

Created:
3 years, 11 months ago by estark
Modified:
3 years, 11 months ago
Reviewers:
Mathieu, Ted C
CC:
chromium-reviews, rouslan+autofill_chromium.org, sebsg+autofillwatch_chromium.org, browser-components-watch_chromium.org, dcheng, mathp+autofillwatch_chromium.org, agrieve+watch_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix styling of Form-Not-Secure warnings on Android This CL updates the styling of the Android form-not-secure warning to match the specs (which are at go/fns-ui-spec). The changes are: - Make the "Payment autofilling disabled" a single-line label so that it has the same padding as the other autofill suggestions. - Change the color of "Payment autofilling disabled" to #646464. - Make both the label and sublabel of the "Payment not secure" item font size 18sp, adjust the icon size to 24, and change horizontal spacings between elements to 10. These changes are implemented by allowing AutofillSuggestion to override the necessary layout values and font sizes for the "Payment autofilling disabled" and "Payment/Login not secure" dropdown items. Screenshots are in: https://bugs.chromium.org/p/chromium/issues/detail?id=678479#c13 BUG=678479 Review-Url: https://codereview.chromium.org/2627153007 Cr-Commit-Position: refs/heads/master@{#444790} Committed: https://chromium.googlesource.com/chromium/src/+/7723c111843d5e749daaf879c9df8205b17fe737

Patch Set 1 #

Total comments: 1

Patch Set 2 : build fix #

Patch Set 3 : margins to 10 per latest specs #

Total comments: 4

Patch Set 4 : tedchoc comments #

Patch Set 5 : actually set the icon size #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -15 lines) Patch
M chrome/browser/ui/android/autofill/autofill_popup_view_android.cc View 2 chunks +9 lines, -2 lines 0 comments Download
M components/autofill/android/java/res/values/colors.xml View 1 chunk +3 lines, -3 lines 0 comments Download
M components/autofill/android/java/res/values/dimens.xml View 1 2 1 chunk +7 lines, -4 lines 0 comments Download
M components/autofill/android/java/src/org/chromium/components/autofill/AutofillSuggestion.java View 1 2 3 chunks +23 lines, -4 lines 0 comments Download
M ui/android/java/res/layout/dropdown_item.xml View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M ui/android/java/res/values/dimens.xml View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M ui/android/java/src/org/chromium/ui/DropdownAdapter.java View 1 2 3 4 2 chunks +15 lines, -0 lines 0 comments Download
M ui/android/java/src/org/chromium/ui/DropdownItem.java View 1 2 3 2 chunks +12 lines, -0 lines 0 comments Download
M ui/android/java/src/org/chromium/ui/DropdownItemBase.java View 1 2 3 2 chunks +15 lines, -0 lines 0 comments Download

Messages

Total messages: 45 (31 generated)
estark
PTAL? mathp for components/autofill miguelg for ui/android and chrome/browser/ui I'm brand new to Android UI ...
3 years, 11 months ago (2017-01-13 02:28:36 UTC) #4
Mathieu
On 2017/01/13 02:28:36, estark wrote: > PTAL? > mathp for components/autofill > miguelg for ui/android ...
3 years, 11 months ago (2017-01-13 16:45:10 UTC) #13
estark
On 2017/01/13 16:45:10, Mathieu Perreault wrote: > On 2017/01/13 02:28:36, estark wrote: > > PTAL? ...
3 years, 11 months ago (2017-01-13 16:59:04 UTC) #14
estark
Updated to match https://bugs.chromium.org/p/chromium/issues/detail?id=678479#c16 (with screenshots at https://bugs.chromium.org/p/chromium/issues/detail?id=678479#c17). I changed margin values to 10dp and ...
3 years, 11 months ago (2017-01-13 18:35:11 UTC) #18
Mathieu
lgtm from Autofill side
3 years, 11 months ago (2017-01-14 20:46:40 UTC) #21
estark
Friendly ping to miguelg
3 years, 11 months ago (2017-01-17 23:19:09 UTC) #22
estark
tedchoc, can you please review chrome/browser/ui/android and ui/android? Thanks!
3 years, 11 months ago (2017-01-18 23:31:14 UTC) #24
Ted C
https://codereview.chromium.org/2627153007/diff/80001/ui/android/java/src/org/chromium/ui/DropdownAdapter.java File ui/android/java/src/org/chromium/ui/DropdownAdapter.java (right): https://codereview.chromium.org/2627153007/diff/80001/ui/android/java/src/org/chromium/ui/DropdownAdapter.java#newcode183 ui/android/java/src/org/chromium/ui/DropdownAdapter.java:183: : mContext.getResources().getDimensionPixelSize(item.getIconSizeResId()); This is a "bit" odd. When specifying ...
3 years, 11 months ago (2017-01-19 00:35:30 UTC) #25
estark
Thanks! Responded to your comments, Ted. Admittedly I haven't tested these latest changes visually yet ...
3 years, 11 months ago (2017-01-19 07:16:48 UTC) #30
Ted C
lgtm
3 years, 11 months ago (2017-01-19 16:55:42 UTC) #37
Ted C
On 2017/01/19 16:55:42, Ted C wrote: > lgtm If you have to make any tweaks ...
3 years, 11 months ago (2017-01-19 16:56:52 UTC) #38
estark
On 2017/01/19 16:56:52, Ted C wrote: > On 2017/01/19 16:55:42, Ted C wrote: > > ...
3 years, 11 months ago (2017-01-19 18:11:23 UTC) #39
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/2627153007/140001
3 years, 11 months ago (2017-01-19 18:12:01 UTC) #42
commit-bot: I haz the power
3 years, 11 months ago (2017-01-19 18:17:25 UTC) #45
Message was sent while issue was closed.
Committed patchset #5 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/7723c111843d5e749daaf879c9df...

Powered by Google App Engine
This is Rietveld 408576698