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

Issue 2607043002: [Autofill] Credit Card Autofill Last Used Date Experiment (Closed)

Created:
3 years, 11 months ago by jiahuiguo
Modified:
3 years, 10 months ago
CC:
rouslan+autofill_chromium.org, sebsg+autofillwatch_chromium.org, browser-components-watch_chromium.org, mathp+autofillwatch_chromium.org, asvitkine+watch_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org, mikeying
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Credit Card Autofill Last Used Date Experiment Implemented displaying the last used date in credit card autofill suggestions. BUG=671880 TEST=TimeFormattingTest.TimeFormatWithPattern(base_unittests), CreditCardTest.GetLastUsedDateForDisplay(components_unittests), PersonalDataManagerTest.*(components_unittests) Review-Url: https://codereview.chromium.org/2607043002 Cr-Commit-Position: refs/heads/master@{#450089} Committed: https://chromium.googlesource.com/chromium/src/+/43b1225755424b08683d7da6b99f8a695c6c86b4

Patch Set 1 : Added autofill last used date experiment and flags #

Patch Set 2 : Fix histgram issue #

Patch Set 3 : Show expiration date if keyboard accessory is enabled #

Total comments: 30

Patch Set 4 : Added variations to show expiration date and detail time info #

Total comments: 34

Patch Set 5 : Resolved comments #

Patch Set 6 : Fixed some nits #

Patch Set 7 : Add date formatter based on pattern #

Total comments: 8

Patch Set 8 : Refactored and added unittest #

Patch Set 9 : Added unittest dependency #

Total comments: 16

Patch Set 10 : Unified variation unittest using variations_params_manager #

Patch Set 11 : Fixed conflicts #

Total comments: 6

Patch Set 12 : Separated TimeFormatting unittests per locales #

Patch Set 13 : Disable time formatting unittest on Android #

Patch Set 14 : Enable unittest on android for time_formatting #

Total comments: 23

Patch Set 15 : Refactored function and unittests #

Patch Set 16 : Cleaned up included header #

Total comments: 8

Patch Set 17 : Addressed reviewer's comments #

Total comments: 2

Patch Set 18 : Get rid of show_time_detail variation because msg is too long after translation #

Patch Set 19 : Resolved patch conflicts #

Patch Set 20 : Resolved patch conflicts #

Total comments: 6

Patch Set 21 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+258 lines, -38 lines) Patch
M base/i18n/time_formatting.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +7 lines, -0 lines 0 comments Download
M base/i18n/time_formatting.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M base/i18n/time_formatting_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +23 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 17 18 19 20 1 chunk +7 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 16 17 18 19 20 2 chunks +18 lines, -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 14 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_experiments.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +9 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_experiments.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +17 lines, -2 lines 0 comments Download
M components/autofill/core/browser/credit_card.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +3 lines, -0 lines 0 comments Download
M components/autofill/core/browser/credit_card.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +54 lines, -0 lines 0 comments Download
M components/autofill/core/browser/credit_card_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +70 lines, -0 lines 0 comments Download
M components/autofill/core/browser/personal_data_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +7 lines, -2 lines 0 comments Download
M components/autofill/core/browser/personal_data_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 7 chunks +7 lines, -32 lines 0 comments Download
M components/autofill_strings.grdp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +26 lines, -1 line 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 17 18 19 20 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 152 (115 generated)
jiahuiguo
Hi Mathieu, Sébastien, Evan, Robert, Jared, Sashi Please review a changelist for the autofill last ...
3 years, 11 months ago (2017-01-03 20:41:00 UTC) #25
csashi
https://codereview.chromium.org/2607043002/diff/40001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/2607043002/diff/40001/chrome/app/generated_resources.grd#newcode15235 chrome/app/generated_resources.grd:15235: + </message> Display the last used data of the ...
3 years, 11 months ago (2017-01-03 20:54:06 UTC) #26
Evan Stade
many reviewers listed here --- is there something in particular you'd like each to look ...
3 years, 11 months ago (2017-01-03 21:21:09 UTC) #27
Jared Saul
https://codereview.chromium.org/2607043002/diff/40001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/2607043002/diff/40001/chrome/app/generated_resources.grd#newcode15235 chrome/app/generated_resources.grd:15235: + </message> On 2017/01/03 20:54:06, csashi wrote: > Display ...
3 years, 11 months ago (2017-01-04 22:01:24 UTC) #29
rkaplow
https://codereview.chromium.org/2607043002/diff/40001/components/autofill/core/browser/personal_data_manager.cc File components/autofill/core/browser/personal_data_manager.cc (right): https://codereview.chromium.org/2607043002/diff/40001/components/autofill/core/browser/personal_data_manager.cc#newcode1628 components/autofill/core/browser/personal_data_manager.cc:1628: !IsKeyboardAccessoryEnabled()) { if !IsKeyboardAccessoryEnabled(), do we want the user ...
3 years, 11 months ago (2017-01-09 21:54:17 UTC) #30
jiahuiguo
Hi Mathieu, Robert, Jared, Sashi, Thanks for the comments, PTAL the revision and newly added ...
3 years, 11 months ago (2017-01-18 00:13:45 UTC) #36
rkaplow
lgtm histograms.xml change and experiment lg
3 years, 11 months ago (2017-01-18 02:46:44 UTC) #37
Mathieu
Some comments, thanks! https://codereview.chromium.org/2607043002/diff/60001/components/autofill/core/browser/credit_card.cc File components/autofill/core/browser/credit_card.cc (right): https://codereview.chromium.org/2607043002/diff/60001/components/autofill/core/browser/credit_card.cc#newcode779 components/autofill/core/browser/credit_card.cc:779: base::string16 CreditCard::LastUsedDateAsString( Could we rename this ...
3 years, 11 months ago (2017-01-18 14:42:15 UTC) #38
Jared Saul
https://codereview.chromium.org/2607043002/diff/60001/components/autofill/core/browser/autofill_experiments.cc File components/autofill/core/browser/autofill_experiments.cc (right): https://codereview.chromium.org/2607043002/diff/60001/components/autofill/core/browser/autofill_experiments.cc#newcode48 components/autofill/core/browser/autofill_experiments.cc:48: const char kAutofillCreditCardLastUsedDateShowTimeDetailKey[] = The previous file (and later ...
3 years, 11 months ago (2017-01-18 18:43:44 UTC) #39
jiahuiguo
Hi Mathieu, Jared and Sashi, Thanks for the comments, PTAL. https://codereview.chromium.org/2607043002/diff/60001/components/autofill/core/browser/autofill_experiments.cc File components/autofill/core/browser/autofill_experiments.cc (right): https://codereview.chromium.org/2607043002/diff/60001/components/autofill/core/browser/autofill_experiments.cc#newcode48 ...
3 years, 11 months ago (2017-01-18 22:18:13 UTC) #46
jiahuiguo
Hi Mathieu, I found it might be better to add a function to the time_formatting ...
3 years, 11 months ago (2017-01-20 05:36:47 UTC) #52
Mathieu
On 2017/01/20 05:36:47, jiahuiguo wrote: > Hi Mathieu, > > I found it might be ...
3 years, 11 months ago (2017-01-20 15:11:30 UTC) #55
jungshik at Google
https://codereview.chromium.org/2607043002/diff/120001/base/i18n/time_formatting.h File base/i18n/time_formatting.h (right): https://codereview.chromium.org/2607043002/diff/120001/base/i18n/time_formatting.h#newcode84 base/i18n/time_formatting.h:84: const char* pattern); Perhaps, add a unit test? https://codereview.chromium.org/2607043002/diff/120001/components/autofill/core/browser/credit_card.cc ...
3 years, 11 months ago (2017-01-23 21:43:24 UTC) #56
jungshik at Google
BTW, is it ok not to show year (last time used)? What if a card ...
3 years, 11 months ago (2017-01-23 22:02:34 UTC) #57
jiahuiguo
On 2017/01/23 22:02:34, jungshik at Google wrote: > BTW, is it ok not to show ...
3 years, 11 months ago (2017-01-25 07:25:55 UTC) #64
Jared Saul
https://codereview.chromium.org/2607043002/diff/160001/base/i18n/time_formatting.cc File base/i18n/time_formatting.cc (right): https://codereview.chromium.org/2607043002/diff/160001/base/i18n/time_formatting.cc#newcode92 base/i18n/time_formatting.cc:92: NOTREACHED(); Remove NOTREACHED()? https://codereview.chromium.org/2607043002/diff/160001/components/autofill/core/browser/personal_data_manager.cc File components/autofill/core/browser/personal_data_manager.cc (right): https://codereview.chromium.org/2607043002/diff/160001/components/autofill/core/browser/personal_data_manager.cc#newcode1703 components/autofill/core/browser/personal_data_manager.cc:1703: ...
3 years, 11 months ago (2017-01-25 18:22:17 UTC) #71
Jared Saul
https://codereview.chromium.org/2607043002/diff/160001/base/i18n/time_formatting.cc File base/i18n/time_formatting.cc (right): https://codereview.chromium.org/2607043002/diff/160001/base/i18n/time_formatting.cc#newcode92 base/i18n/time_formatting.cc:92: NOTREACHED(); Whoops, ignore this--I didn't realize this was a ...
3 years, 11 months ago (2017-01-26 00:15:39 UTC) #72
jiahuiguo
Hi Mathieu, Jungshik and Jared, Thanks for the comments, PTAL. https://codereview.chromium.org/2607043002/diff/120001/base/i18n/time_formatting.h File base/i18n/time_formatting.h (right): https://codereview.chromium.org/2607043002/diff/120001/base/i18n/time_formatting.h#newcode84 ...
3 years, 11 months ago (2017-01-26 05:46:13 UTC) #83
jungshik at Google
Thanks a lot for the revision. Here are a couple of more comments. https://codereview.chromium.org/2607043002/diff/200001/base/i18n/time_formatting_unittest.cc File ...
3 years, 11 months ago (2017-01-26 19:29:14 UTC) #84
jiahuiguo
Hi Mathieu, Jungshik and Jared, Thanks for the comments, PTAL. The unittest on linux_android_rel_ng is ...
3 years, 10 months ago (2017-01-27 09:31:05 UTC) #97
Mathieu
Thanks Jason, some more comments. Really appreciate moving some logic to //base https://codereview.chromium.org/2607043002/diff/260001/base/i18n/time_formatting.h File base/i18n/time_formatting.h ...
3 years, 10 months ago (2017-01-27 15:01:44 UTC) #100
jungshik at Google
https://codereview.chromium.org/2607043002/diff/260001/base/i18n/time_formatting_unittest.cc File base/i18n/time_formatting_unittest.cc (right): https://codereview.chromium.org/2607043002/diff/260001/base/i18n/time_formatting_unittest.cc#newcode259 base/i18n/time_formatting_unittest.cc:259: TimeFormatWithPattern(time, "yMMMd")); An alternative would be EXPET_EQ(u8"2011年4月30日", UTF16ToUTF8(TImeFormatWithPattern...)); It ...
3 years, 10 months ago (2017-01-27 21:43:30 UTC) #101
jungshik at Google
LGTM with optional changes below and in the previous comment. https://codereview.chromium.org/2607043002/diff/260001/base/i18n/time_formatting_unittest.cc File base/i18n/time_formatting_unittest.cc (right): https://codereview.chromium.org/2607043002/diff/260001/base/i18n/time_formatting_unittest.cc#newcode228 ...
3 years, 10 months ago (2017-01-27 21:51:35 UTC) #102
jiahuiguo
Hi Mathieu, Jungshik and Jared, PTAL. For credit_card_unittest, only en_US is tested since GetInfo() function ...
3 years, 10 months ago (2017-02-03 07:11:17 UTC) #113
Mathieu
On 2017/02/03 07:11:17, jiahuiguo wrote: > Hi Mathieu, Jungshik and Jared, > > PTAL. For ...
3 years, 10 months ago (2017-02-03 14:50:54 UTC) #114
Mathieu
Thanks Json https://codereview.chromium.org/2607043002/diff/300001/components/autofill/core/browser/autofill_experiments.cc File components/autofill/core/browser/autofill_experiments.cc (right): https://codereview.chromium.org/2607043002/diff/300001/components/autofill/core/browser/autofill_experiments.cc#newcode31 components/autofill/core/browser/autofill_experiments.cc:31: const base::Feature kAutofillCreditCardPopupLayout{ As discussed, you can ...
3 years, 10 months ago (2017-02-04 02:37:58 UTC) #115
Mathieu
Thanks Jason
3 years, 10 months ago (2017-02-04 02:38:09 UTC) #116
jiahuiguo
Hi Mathieu and Jared, PTAL. Thanks, https://codereview.chromium.org/2607043002/diff/300001/components/autofill/core/browser/autofill_experiments.cc File components/autofill/core/browser/autofill_experiments.cc (right): https://codereview.chromium.org/2607043002/diff/300001/components/autofill/core/browser/autofill_experiments.cc#newcode31 components/autofill/core/browser/autofill_experiments.cc:31: const base::Feature kAutofillCreditCardPopupLayout{ ...
3 years, 10 months ago (2017-02-08 01:21:39 UTC) #123
Mathieu
lgtm
3 years, 10 months ago (2017-02-08 01:24:07 UTC) #124
Mathieu
https://codereview.chromium.org/2607043002/diff/320001/components/autofill_strings.grdp File components/autofill_strings.grdp (right): https://codereview.chromium.org/2607043002/diff/320001/components/autofill_strings.grdp#newcode250 components/autofill_strings.grdp:250: <message name="IDS_AUTOFILL_CREDIT_CARD_EXP_AND_LAST_USED_DATE_DETAIL" desc="Text displayed in the Autofill Credit Card ...
3 years, 10 months ago (2017-02-08 11:51:05 UTC) #125
Jared Saul
lgtm (but FYI I'm having a really hard time distinguishing which files were changed and ...
3 years, 10 months ago (2017-02-08 16:50:24 UTC) #126
jiahuiguo
Hi Mahthieu and Jared, PTAL, this patch removed show_time_detail variation since the translated string is ...
3 years, 10 months ago (2017-02-11 01:32:21 UTC) #137
Mathieu
lgtm, thanks https://codereview.chromium.org/2607043002/diff/380001/components/autofill/core/browser/credit_card.cc File components/autofill/core/browser/credit_card.cc (right): https://codereview.chromium.org/2607043002/diff/380001/components/autofill/core/browser/credit_card.cc#newcode54 components/autofill/core/browser/credit_card.cc:54: const char kTimeFormatPatternNoYearShortMonthDate[] = "MMMdd"; Can you ...
3 years, 10 months ago (2017-02-12 20:42:05 UTC) #140
Jared Saul
lgtm https://codereview.chromium.org/2607043002/diff/380001/components/autofill_strings.grdp File components/autofill_strings.grdp (right): https://codereview.chromium.org/2607043002/diff/380001/components/autofill_strings.grdp#newcode232 components/autofill_strings.grdp:232: Exp: <ph name="EXPIRATION_DATE_ABBR">$1<ex>06/17</ex></ph>, added: <ph name="Added_TO_AUTOFILL_MONTH">$2<ex>Jan 10</ex></ph> Should ...
3 years, 10 months ago (2017-02-13 19:15:49 UTC) #141
jiahuiguo
Thanks for all the comments. Sending to CQ. https://codereview.chromium.org/2607043002/diff/380001/components/autofill/core/browser/credit_card.cc File components/autofill/core/browser/credit_card.cc (right): https://codereview.chromium.org/2607043002/diff/380001/components/autofill/core/browser/credit_card.cc#newcode54 components/autofill/core/browser/credit_card.cc:54: const ...
3 years, 10 months ago (2017-02-13 21:04:10 UTC) #146
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/2607043002/400001
3 years, 10 months ago (2017-02-13 21:05:34 UTC) #149
commit-bot: I haz the power
3 years, 10 months ago (2017-02-13 21:18:35 UTC) #152
Message was sent while issue was closed.
Committed patchset #21 (id:400001) as
https://chromium.googlesource.com/chromium/src/+/43b1225755424b08683d7da6b99f...

Powered by Google App Engine
This is Rietveld 408576698