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

Issue 2026353002: [Autofill] Credit Card Assist Infobar (Closed)

Created:
4 years, 6 months ago by Mathieu
Modified:
4 years, 4 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, rouslan+autofill_chromium.org, jam, browser-components-watch_chromium.org, jdonnelly+autofillwatch_chromium.org, mkwst+moarreviews-renderer_chromium.org, darin-cc_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Initial implementation of the credit card assisted filling infobar. On page load, this will prompt the user for automatic credit card filling. When user accepts the prompt, the credit card form is filled with their credit card data. Several big TODOs: * Opening a dialog to get the CVC (hoping to reuse PaymentRequest code) * Only proposing the assist when the form is in the viewport. * Offering more than 1 card in the infobar. Mocks (internal): https://folio.googleplex.com/chrome-ux/mocks/304-payments-zero-integration/ZI_V2_Exploration/autofill-ahead-infobar#%2F06.png%3Fc=show Video (public): https://drive.google.com/file/d/0B3xzZ-vFr2LRMW1yUkZDYWR4Um8/view?usp=sharing BUG=630656 TEST=AssistManagerTest,AutofillCreditCardFillingInfoBarDelegateMobileTest Committed: https://crrev.com/f43ced4ebf836fa29f4d4fada46b6f9e924a8d6e Cr-Commit-Position: refs/heads/master@{#409841}

Patch Set 1 : Initial #

Patch Set 2 : tests #

Total comments: 36

Patch Set 3 : chrome flag #

Total comments: 9

Patch Set 4 : addressed Evan's comments #

Patch Set 5 : addressed Rouslan's comments #

Patch Set 6 : bool fix #

Total comments: 18

Patch Set 7 : addressed more comments #

Total comments: 34

Patch Set 8 : renamed to autofill_credit_card_filling... #

Patch Set 9 : gyp fix #

Patch Set 10 : other platform fixes #

Patch Set 11 : namespace fix #

Patch Set 12 : remove std::move #

Total comments: 1

Patch Set 13 : removed CreateCreditCardFillingInfoBar from interface #

Total comments: 18

Patch Set 14 : renamed to autofill_assistant #

Total comments: 2

Patch Set 15 : addressed nit #

Patch Set 16 : rebase #

Total comments: 4

Patch Set 17 : rebase, remove JNI native bindings #

Patch Set 18 : cleaning #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1111 lines, -46 lines) Patch
M android_webview/native/aw_autofill_client.h View 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M android_webview/native/aw_autofill_client.cc View 8 9 10 11 12 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/infobar/AutofillCreditCardFillingInfoBar.java View 1 2 3 4 5 6 7 1 chunk +84 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/infobar/AutofillSaveCardInfoBar.java View 1 2 3 4 4 chunks +4 lines, -37 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/infobar/CardDetail.java View 1 2 3 4 5 6 7 1 chunk +42 lines, -0 lines 0 comments Download
M chrome/android/java_sources.gni View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/android/chrome_jni_registrar.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/autofill/autofill_credit_card_filling_infobar_delegate_mobile_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +113 lines, -0 lines 0 comments Download
A chrome/browser/ui/android/infobars/autofill_credit_card_filling_infobar.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +38 lines, -0 lines 0 comments Download
A chrome/browser/ui/android/infobars/autofill_credit_card_filling_infobar.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +61 lines, -0 lines 0 comments Download
M chrome/browser/ui/autofill/chrome_autofill_client.h View 1 2 3 4 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/autofill/chrome_autofill_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +19 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/autofill/save_card_bubble_view_bridge.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/autofill/save_card_bubble_views.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +9 lines, -0 lines 0 comments Download
M components/autofill/content/renderer/autofill_agent.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +13 lines, -0 lines 0 comments Download
A components/autofill/core/browser/autofill_assistant.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +59 lines, -0 lines 0 comments Download
A components/autofill/core/browser/autofill_assistant.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +60 lines, -0 lines 0 comments Download
A components/autofill/core/browser/autofill_assistant_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +159 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_client.h View 1 2 3 4 5 6 8 9 10 11 12 1 chunk +5 lines, -0 lines 0 comments Download
A components/autofill/core/browser/autofill_credit_card_filling_infobar_delegate_mobile.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +75 lines, -0 lines 0 comments Download
A components/autofill/core/browser/autofill_credit_card_filling_infobar_delegate_mobile.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +89 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_experiments.h View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_experiments.cc View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +8 lines, -1 line 0 comments Download
M components/autofill/core/browser/autofill_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +24 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_metrics.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_metrics.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_save_card_infobar_delegate_mobile.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/browser/form_structure.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M components/autofill/core/browser/form_structure.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +24 lines, -0 lines 0 comments Download
M components/autofill/core/browser/form_structure_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +123 lines, -0 lines 0 comments Download
M components/autofill/core/browser/test_autofill_client.h View 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M components/autofill/core/browser/test_autofill_client.cc View 8 9 10 11 12 1 chunk +6 lines, -0 lines 0 comments Download
M components/autofill/core/common/autofill_constants.h View 1 chunk +4 lines, -0 lines 0 comments Download
M components/autofill_strings.grdp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +8 lines, -3 lines 0 comments Download
M components/components_strings.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M components/infobars/core/infobar_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M ios/chrome/browser/ui/autofill/autofill_client_ios.h View 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M ios/chrome/browser/ui/autofill/autofill_client_ios.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +6 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 98 (66 generated)
Mathieu
rouslan: Having done the Save Card infobar, would like if you could be main reviewer ...
4 years, 4 months ago (2016-07-26 21:00:06 UTC) #10
Mathieu
On 2016/07/26 21:00:06, Mathieu Perreault wrote: > rouslan: Having done the Save Card infobar, would ...
4 years, 4 months ago (2016-07-27 15:36:41 UTC) #11
Evan Stade
https://codereview.chromium.org/2026353002/diff/120001/components/autofill/core/browser/assist_manager.cc File components/autofill/core/browser/assist_manager.cc (right): https://codereview.chromium.org/2026353002/diff/120001/components/autofill/core/browser/assist_manager.cc#newcode31 components/autofill/core/browser/assist_manager.cc:31: return false; do you intend to implement this on ...
4 years, 4 months ago (2016-07-27 16:42:40 UTC) #12
please use gerrit instead
Reviewed a bunch of code, but have more to go. Will review when have time ...
4 years, 4 months ago (2016-07-27 17:02:26 UTC) #13
Mathieu
Thanks to both of you. PTAL https://codereview.chromium.org/2026353002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/infobar/AutofillAssistInfoBar.java File chrome/android/java/src/org/chromium/chrome/browser/infobar/AutofillAssistInfoBar.java (right): https://codereview.chromium.org/2026353002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/infobar/AutofillAssistInfoBar.java#newcode16 chrome/android/java/src/org/chromium/chrome/browser/infobar/AutofillAssistInfoBar.java:16: * An infobar ...
4 years, 4 months ago (2016-07-27 21:35:53 UTC) #14
please use gerrit instead
lgtm % a few comments and nits. https://codereview.chromium.org/2026353002/diff/180001/chrome/android/java/src/org/chromium/chrome/browser/infobar/AutofillSaveCardInfoBar.java File chrome/android/java/src/org/chromium/chrome/browser/infobar/AutofillSaveCardInfoBar.java (right): https://codereview.chromium.org/2026353002/diff/180001/chrome/android/java/src/org/chromium/chrome/browser/infobar/AutofillSaveCardInfoBar.java#newcode82 chrome/android/java/src/org/chromium/chrome/browser/infobar/AutofillSaveCardInfoBar.java:82: private final ...
4 years, 4 months ago (2016-07-29 16:33:20 UTC) #15
Evan Stade
https://codereview.chromium.org/2026353002/diff/120001/components/autofill/core/browser/assist_manager.cc File components/autofill/core/browser/assist_manager.cc (right): https://codereview.chromium.org/2026353002/diff/120001/components/autofill/core/browser/assist_manager.cc#newcode31 components/autofill/core/browser/assist_manager.cc:31: return false; On 2016/07/27 21:35:53, Mathieu Perreault wrote: > ...
4 years, 4 months ago (2016-07-29 17:02:51 UTC) #16
Mathieu
Thanks! Now only compiling on Android. torne@chromium.org: Please review changes in webview jdonnelly@chromium.org: Please review ...
4 years, 4 months ago (2016-07-29 20:19:17 UTC) #18
Mathieu
pkasting@chromium.org: Please review changes in components/infobars
4 years, 4 months ago (2016-07-29 20:20:19 UTC) #22
rkaplow
lgtm histogram lg
4 years, 4 months ago (2016-07-29 20:22:40 UTC) #23
Justin Donnelly
ios files lgtm Can you add some more info to the bug and maybe a ...
4 years, 4 months ago (2016-07-29 20:57:47 UTC) #26
Peter Kasting
https://codereview.chromium.org/2026353002/diff/200001/chrome/browser/ui/android/infobars/autofill_assist_infobar.h File chrome/browser/ui/android/infobars/autofill_assist_infobar.h (right): https://codereview.chromium.org/2026353002/diff/200001/chrome/browser/ui/android/infobars/autofill_assist_infobar.h#newcode19 chrome/browser/ui/android/infobars/autofill_assist_infobar.h:19: // Android implementation of the infobar for saving credit ...
4 years, 4 months ago (2016-07-29 21:26:34 UTC) #27
Torne
android_webview lgtm
4 years, 4 months ago (2016-08-01 12:00:24 UTC) #28
gone
Could you attach screenshots/mocks to the bug? Hard to gauge what I'm looking at. https://chromiumcodereview.appspot.com/2026353002/diff/200001/chrome/android/java/src/org/chromium/chrome/browser/infobar/AutofillAssistInfoBar.java ...
4 years, 4 months ago (2016-08-01 20:35:54 UTC) #31
Mathieu
Hi Peter and Dan, PTAL. Not too happy with adding components/infobars to android_webview DEPS. Can ...
4 years, 4 months ago (2016-08-01 22:16:58 UTC) #37
Evan Stade
https://codereview.chromium.org/2026353002/diff/360001/chrome/browser/ui/autofill/chrome_autofill_client.cc File chrome/browser/ui/autofill/chrome_autofill_client.cc (right): https://codereview.chromium.org/2026353002/diff/360001/chrome/browser/ui/autofill/chrome_autofill_client.cc#newcode221 chrome/browser/ui/autofill/chrome_autofill_client.cc:221: AutofillCreditCardFillingInfoBarDelegateMobile::Create( is it possible to avoid adding CreateCreditCardFillingInfoBar() to ...
4 years, 4 months ago (2016-08-02 13:46:41 UTC) #61
Mathieu
On 2016/08/02 13:46:41, Evan Stade (sorta ooo) wrote: > https://codereview.chromium.org/2026353002/diff/360001/chrome/browser/ui/autofill/chrome_autofill_client.cc > File chrome/browser/ui/autofill/chrome_autofill_client.cc (right): > ...
4 years, 4 months ago (2016-08-02 15:26:31 UTC) #64
Mathieu
ping pkasting@, thanks
4 years, 4 months ago (2016-08-02 21:53:11 UTC) #65
Peter Kasting
https://codereview.chromium.org/2026353002/diff/200001/components/autofill_strings.grdp File components/autofill_strings.grdp (right): https://codereview.chromium.org/2026353002/diff/200001/components/autofill_strings.grdp#newcode184 components/autofill_strings.grdp:184: <message name="IDS_AUTOFILL_CREDIT_CARD_ASSIST_INFOBAR_DENY" desc="Text to show for the Autofill credit ...
4 years, 4 months ago (2016-08-03 02:25:41 UTC) #66
Mathieu
Hi Peter, Evan, PTAL https://codereview.chromium.org/2026353002/diff/200001/components/autofill_strings.grdp File components/autofill_strings.grdp (right): https://codereview.chromium.org/2026353002/diff/200001/components/autofill_strings.grdp#newcode184 components/autofill_strings.grdp:184: <message name="IDS_AUTOFILL_CREDIT_CARD_ASSIST_INFOBAR_DENY" desc="Text to show ...
4 years, 4 months ago (2016-08-03 18:34:44 UTC) #68
gone
Android stuff looks like it's hooked up right, at least, so LGTM.
4 years, 4 months ago (2016-08-03 18:39:57 UTC) #69
Peter Kasting
lgtm https://chromiumcodereview.appspot.com/2026353002/diff/460001/chrome/browser/ui/autofill/chrome_autofill_client.cc File chrome/browser/ui/autofill/chrome_autofill_client.cc (right): https://chromiumcodereview.appspot.com/2026353002/diff/460001/chrome/browser/ui/autofill/chrome_autofill_client.cc#newcode232 chrome/browser/ui/autofill/chrome_autofill_client.cc:232: raw_delegate->set_was_shown(); Nit: Can just inline if you want: ...
4 years, 4 months ago (2016-08-04 00:51:41 UTC) #70
Mathieu
Thanks, Evan PTAL https://chromiumcodereview.appspot.com/2026353002/diff/460001/chrome/browser/ui/autofill/chrome_autofill_client.cc File chrome/browser/ui/autofill/chrome_autofill_client.cc (right): https://chromiumcodereview.appspot.com/2026353002/diff/460001/chrome/browser/ui/autofill/chrome_autofill_client.cc#newcode232 chrome/browser/ui/autofill/chrome_autofill_client.cc:232: raw_delegate->set_was_shown(); On 2016/08/04 00:51:41, Peter Kasting ...
4 years, 4 months ago (2016-08-04 01:31:50 UTC) #71
Mathieu
caitkp@chromium.org: Please review changes in components_strings.grd
4 years, 4 months ago (2016-08-04 01:36:42 UTC) #73
Evan Stade
my files lgtm https://codereview.chromium.org/2026353002/diff/500001/chrome/browser/ui/autofill/chrome_autofill_client.cc File chrome/browser/ui/autofill/chrome_autofill_client.cc (right): https://codereview.chromium.org/2026353002/diff/500001/chrome/browser/ui/autofill/chrome_autofill_client.cc#newcode226 chrome/browser/ui/autofill/chrome_autofill_client.cc:226: std::move(infobar_delegate))); nit: all these std:: and ...
4 years, 4 months ago (2016-08-04 13:01:49 UTC) #82
Cait (Slow)
components_strings lgtm
4 years, 4 months ago (2016-08-04 14:30:59 UTC) #83
Mathieu
Thanks, will submit https://codereview.chromium.org/2026353002/diff/500001/chrome/browser/ui/autofill/chrome_autofill_client.cc File chrome/browser/ui/autofill/chrome_autofill_client.cc (right): https://codereview.chromium.org/2026353002/diff/500001/chrome/browser/ui/autofill/chrome_autofill_client.cc#newcode226 chrome/browser/ui/autofill/chrome_autofill_client.cc:226: std::move(infobar_delegate))); On 2016/08/04 13:01:48, Evan Stade ...
4 years, 4 months ago (2016-08-04 15:46:13 UTC) #86
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/2026353002/540001
4 years, 4 months ago (2016-08-04 15:59:38 UTC) #90
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/204194)
4 years, 4 months ago (2016-08-04 17:09:43 UTC) #92
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/2026353002/540001
4 years, 4 months ago (2016-08-04 17:36:41 UTC) #94
commit-bot: I haz the power
Committed patchset #18 (id:540001)
4 years, 4 months ago (2016-08-04 18:28:49 UTC) #96
commit-bot: I haz the power
4 years, 4 months ago (2016-08-04 18:30:21 UTC) #98
Message was sent while issue was closed.
Patchset 18 (id:??) landed as
https://crrev.com/f43ced4ebf836fa29f4d4fada46b6f9e924a8d6e
Cr-Commit-Position: refs/heads/master@{#409841}

Powered by Google App Engine
This is Rietveld 408576698