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

Issue 2496683003: Http Bad: Add a PopupItemId to identify http warning message (Closed)

Created:
4 years, 1 month ago by lshang
Modified:
4 years, 1 month ago
Reviewers:
Ted C, Mathieu, csashi, hwi1, msw, dvadym
CC:
chromium-reviews, jam, vabr+watchlistpasswordmanager_chromium.org, rouslan+autofill_chromium.org, tfarina, sebsg+autofillwatch_chromium.org, browser-components-watch_chromium.org, jdonnelly+autofillwatch_chromium.org, mathp+autofillwatch_chromium.org, darin-cc_chromium.org, agrieve+watch_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org, gcasto+watchlist_chromium.org, android-webview-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Http Bad: Add a PopupItemId to identify http warning message Since Http bad warning message has somewhat different UI from other autofill popup items (see specs of http bad warning message in: go/fns-ui-spec), this CL adds a new PopupItemId POPUP_ITEM_ID_HTTP_NOT_SECURE_WARNING_MESSAGE to identify http warning message. And renamed POPUP_ITEM_ID_WARNING_MESSAGE to POPUP_ITEM_ID_INSECURE_CONTEXT_PAYMENT_DISABLED_MESSAGE accordingly to be more specific. This CL also changes text color of the message to show an example of use this new PopupItemId in UI code. BUG=662298, 662297 Committed: https://crrev.com/4d6fb24de5f4de7bf92ca572b7be8c3a05376043 Cr-Commit-Position: refs/heads/master@{#433092}

Patch Set 1 #

Patch Set 2 : advise test #

Patch Set 3 : minor change #

Total comments: 29

Patch Set 4 : address review comments #

Total comments: 18

Patch Set 5 : add DropdownItemImpl to handle default settings #

Patch Set 6 : back iswarning #

Total comments: 9

Patch Set 7 : minor change #

Total comments: 12

Patch Set 8 : update #

Total comments: 20

Patch Set 9 : update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -49 lines) Patch
M chrome/browser/ui/android/autofill/autofill_popup_view_android.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/autofill/autofill_popup_controller_impl.cc View 1 2 3 4 5 2 chunks +10 lines, -3 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_popup_layout_model.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_popup_layout_model.cc View 1 2 3 4 5 6 7 8 3 chunks +15 lines, -1 line 0 comments Download
M chrome/browser/ui/autofill/popup_constants.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/autofill/autofill_popup_view_views.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
A components/autofill/android/java/res/values/colors.xml View 1 2 3 4 5 6 7 8 1 chunk +11 lines, -0 lines 0 comments Download
M components/autofill/android/java/res/values/dimens.xml View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M components/autofill/android/java/src/org/chromium/components/autofill/AutofillSuggestion.java View 1 2 3 4 5 6 7 8 2 chunks +21 lines, -8 lines 0 comments Download
M components/autofill/core/browser/autofill_external_delegate.cc View 1 2 3 2 chunks +5 lines, -3 lines 0 comments Download
M components/autofill/core/browser/autofill_external_delegate_unittest.cc View 1 2 3 2 chunks +7 lines, -7 lines 0 comments Download
M components/autofill/core/browser/autofill_manager.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M components/autofill/core/browser/autofill_manager_unittest.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M components/autofill/core/browser/popup_item_ids.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M components/password_manager/core/browser/password_autofill_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/input/SelectPopupItem.java View 1 2 3 4 5 6 7 3 chunks +2 lines, -17 lines 0 comments Download
M ui/android/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ui/android/java/res/layout/dropdown_item.xml View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/android/java/res/values/dimens.xml View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ui/android/java/src/org/chromium/ui/DropdownAdapter.java View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -0 lines 0 comments Download
M ui/android/java/src/org/chromium/ui/DropdownItem.java View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -0 lines 0 comments Download
A ui/android/java/src/org/chromium/ui/DropdownItemBase.java View 1 2 3 4 5 6 7 8 1 chunk +51 lines, -0 lines 0 comments Download

Messages

Total messages: 76 (48 generated)
lshang
Hey Mathieu, could you take a look at this CL? I added a new PopupItemId ...
4 years, 1 month ago (2016-11-11 02:28:12 UTC) #10
Mathieu
Thanks, some comments! Adding +csashi for the design question on Android. https://codereview.chromium.org/2496683003/diff/20002/chrome/browser/ui/autofill/autofill_popup_controller.h File chrome/browser/ui/autofill/autofill_popup_controller.h (right): ...
4 years, 1 month ago (2016-11-12 12:52:05 UTC) #20
csashi
https://codereview.chromium.org/2496683003/diff/20002/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopupBridge.java File chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopupBridge.java (right): https://codereview.chromium.org/2496683003/diff/20002/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopupBridge.java#newcode128 chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopupBridge.java:128: * @param isHttpWarningMeddage Whether the item is a HTTP ...
4 years, 1 month ago (2016-11-12 22:45:55 UTC) #21
lshang
https://codereview.chromium.org/2496683003/diff/20002/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopupBridge.java File chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopupBridge.java (right): https://codereview.chromium.org/2496683003/diff/20002/chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopupBridge.java#newcode128 chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopupBridge.java:128: * @param isHttpWarningMeddage Whether the item is a HTTP ...
4 years, 1 month ago (2016-11-14 10:51:01 UTC) #23
Mathieu
Hi Liu, I prefer what you have here because it's less specific to Autofill in ...
4 years, 1 month ago (2016-11-14 14:40:15 UTC) #24
Mathieu
https://codereview.chromium.org/2496683003/diff/20002/components/autofill/android/java/src/org/chromium/components/autofill/AutofillSuggestion.java File components/autofill/android/java/src/org/chromium/components/autofill/AutofillSuggestion.java (right): https://codereview.chromium.org/2496683003/diff/20002/components/autofill/android/java/src/org/chromium/components/autofill/AutofillSuggestion.java#newcode72 components/autofill/android/java/src/org/chromium/components/autofill/AutofillSuggestion.java:72: public boolean isHttpWarningMessage() { On 2016/11/14 14:40:15, Mathieu Perreault ...
4 years, 1 month ago (2016-11-14 14:41:59 UTC) #25
lshang
On 2016/11/14 14:41:59, Mathieu Perreault wrote: > https://codereview.chromium.org/2496683003/diff/20002/components/autofill/android/java/src/org/chromium/components/autofill/AutofillSuggestion.java > File > components/autofill/android/java/src/org/chromium/components/autofill/AutofillSuggestion.java > (right): > ...
4 years, 1 month ago (2016-11-15 00:14:04 UTC) #26
lshang
https://codereview.chromium.org/2496683003/diff/70001/chrome/browser/ui/autofill/autofill_popup_layout_model.cc File chrome/browser/ui/autofill/autofill_popup_layout_model.cc (right): https://codereview.chromium.org/2496683003/diff/70001/chrome/browser/ui/autofill/autofill_popup_layout_model.cc#newcode194 chrome/browser/ui/autofill/autofill_popup_layout_model.cc:194: On 2016/11/14 14:40:15, Mathieu Perreault wrote: > nit: remove ...
4 years, 1 month ago (2016-11-15 04:36:41 UTC) #29
lshang
https://codereview.chromium.org/2496683003/diff/130001/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc File chrome/browser/ui/views/autofill/autofill_popup_view_views.cc (left): https://codereview.chromium.org/2496683003/diff/130001/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc#oldcode84 chrome/browser/ui/views/autofill/autofill_popup_view_views.cc:84: controller_->IsWarning(index) ? kLabelTextColor : kValueTextColor, Didn't remove IsWarning() because ...
4 years, 1 month ago (2016-11-15 07:25:19 UTC) #38
Mathieu
On 2016/11/15 00:14:04, lshang wrote: > On 2016/11/14 14:41:59, Mathieu Perreault wrote: > > > ...
4 years, 1 month ago (2016-11-16 05:06:37 UTC) #39
Mathieu
Thanks for your patience, almost there. Please engage with the Android reviewer as well to ...
4 years, 1 month ago (2016-11-16 05:09:46 UTC) #40
lshang
Thanks Mathieu! +tedchoc@ for Android changes. PTAL thanks! https://codereview.chromium.org/2496683003/diff/130001/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc File chrome/browser/ui/views/autofill/autofill_popup_view_views.cc (left): https://codereview.chromium.org/2496683003/diff/130001/chrome/browser/ui/views/autofill/autofill_popup_view_views.cc#oldcode84 chrome/browser/ui/views/autofill/autofill_popup_view_views.cc:84: controller_->IsWarning(index) ...
4 years, 1 month ago (2016-11-16 09:34:24 UTC) #44
Mathieu
Thanks, lgtm https://codereview.chromium.org/2496683003/diff/150001/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm File chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm (right): https://codereview.chromium.org/2496683003/diff/150001/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm#newcode199 chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm:199: // TODO(lshang): Use AutofillPopupLayoutModel::GetValueFontColorForRow() nit: the format ...
4 years, 1 month ago (2016-11-16 22:29:36 UTC) #47
csashi
lgtm https://codereview.chromium.org/2496683003/diff/150001/chrome/browser/ui/autofill/autofill_popup_layout_model.cc File chrome/browser/ui/autofill/autofill_popup_layout_model.cc (right): https://codereview.chromium.org/2496683003/diff/150001/chrome/browser/ui/autofill/autofill_popup_layout_model.cc#newcode185 chrome/browser/ui/autofill/autofill_popup_layout_model.cc:185: switch (suggestions[index].frontend_id) { Because you only need the ...
4 years, 1 month ago (2016-11-17 01:41:32 UTC) #48
lshang
Thanks! https://codereview.chromium.org/2496683003/diff/150001/chrome/browser/ui/autofill/autofill_popup_layout_model.cc File chrome/browser/ui/autofill/autofill_popup_layout_model.cc (right): https://codereview.chromium.org/2496683003/diff/150001/chrome/browser/ui/autofill/autofill_popup_layout_model.cc#newcode185 chrome/browser/ui/autofill/autofill_popup_layout_model.cc:185: switch (suggestions[index].frontend_id) { On 2016/11/17 01:41:31, csashi wrote: ...
4 years, 1 month ago (2016-11-17 07:03:46 UTC) #51
lshang
msw@chromium.org: Please OWNER review changes in chrome/browser/ui/ dvadym@chromium.org: Please OWNER review changes in passwoed_autofill_manager.cc tedchoc@chromium.org: ...
4 years, 1 month ago (2016-11-17 07:06:55 UTC) #53
dvadym
password_autofill_manager.cc LGTM
4 years, 1 month ago (2016-11-17 10:19:00 UTC) #56
Ted C
https://codereview.chromium.org/2496683003/diff/170001/components/autofill/android/java/res/values/colors.xml File components/autofill/android/java/res/values/colors.xml (right): https://codereview.chromium.org/2496683003/diff/170001/components/autofill/android/java/res/values/colors.xml#newcode9 components/autofill/android/java/res/values/colors.xml:9: <color name="http_bad_warning_message_text">#C93929</color> I think you want: #c53929 Same as ...
4 years, 1 month ago (2016-11-17 17:52:26 UTC) #57
msw
https://codereview.chromium.org/2496683003/diff/170001/chrome/browser/ui/autofill/autofill_popup_layout_model.cc File chrome/browser/ui/autofill/autofill_popup_layout_model.cc (right): https://codereview.chromium.org/2496683003/diff/170001/chrome/browser/ui/autofill/autofill_popup_layout_model.cc#newcode162 chrome/browser/ui/autofill/autofill_popup_layout_model.cc:162: case POPUP_ITEM_ID_HTTP_NOT_SECURE_WARNING_MESSAGE: nit: reorder after POPUP_ITEM_ID_SEPARATOR to better match ...
4 years, 1 month ago (2016-11-17 18:49:39 UTC) #58
lshang
hwi@, could you confirm the text color on mobile? Thanks! https://codereview.chromium.org/2496683003/diff/170001/components/autofill/android/java/res/values/colors.xml File components/autofill/android/java/res/values/colors.xml (right): https://codereview.chromium.org/2496683003/diff/170001/components/autofill/android/java/res/values/colors.xml#newcode9 ...
4 years, 1 month ago (2016-11-17 22:42:18 UTC) #60
hwi1
On 2016/11/17 22:42:18, lshang wrote: > hwi@, could you confirm the text color on mobile? ...
4 years, 1 month ago (2016-11-17 22:48:07 UTC) #61
lshang
On 2016/11/17 22:48:07, hwi1 wrote: > On 2016/11/17 22:42:18, lshang wrote: > > hwi@, could ...
4 years, 1 month ago (2016-11-17 22:49:39 UTC) #62
lshang
Thanks all your comments! Those are really good advice! PTAL again? https://codereview.chromium.org/2496683003/diff/170001/chrome/browser/ui/autofill/autofill_popup_layout_model.cc File chrome/browser/ui/autofill/autofill_popup_layout_model.cc (right): ...
4 years, 1 month ago (2016-11-18 00:03:20 UTC) #63
msw
c/b/ui lgtm, thanks
4 years, 1 month ago (2016-11-18 00:12:27 UTC) #64
Ted C
lgtm https://codereview.chromium.org/2496683003/diff/170001/components/autofill/android/java/src/org/chromium/components/autofill/AutofillSuggestion.java File components/autofill/android/java/src/org/chromium/components/autofill/AutofillSuggestion.java (right): https://codereview.chromium.org/2496683003/diff/170001/components/autofill/android/java/src/org/chromium/components/autofill/AutofillSuggestion.java#newcode17 components/autofill/android/java/src/org/chromium/components/autofill/AutofillSuggestion.java:17: private static final int ITEM_ID_HTTP_NOT_SECURE_WARNING_MESSAGE = -10; On ...
4 years, 1 month ago (2016-11-18 00:18:06 UTC) #65
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/2496683003/190001
4 years, 1 month ago (2016-11-18 03:53:05 UTC) #72
commit-bot: I haz the power
Committed patchset #9 (id:190001)
4 years, 1 month ago (2016-11-18 04:15:31 UTC) #74
commit-bot: I haz the power
4 years, 1 month ago (2016-11-18 04:18:29 UTC) #76
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/4d6fb24de5f4de7bf92ca572b7be8c3a05376043
Cr-Commit-Position: refs/heads/master@{#433092}

Powered by Google App Engine
This is Rietveld 408576698