commit | 4d4693afa913c9272ba70ae0dc8b2eb387f83bce | [log] [tgz] |
---|---|---|
author | szhangcs <szhangcs@google.com> | Fri Mar 31 21:58:04 2017 |
committer | Commit bot <commit-bot@chromium.org> | Fri Mar 31 21:58:04 2017 |
tree | b6ef0ec1a2a6759a41edb7d996617cab683df7ba | |
parent | 7ee0fa238b36d1f1a12a240f2caf025559727ec4 [diff] |
Always initialize this year and month Currently, after click newCardLink for server cards, the confirm button is always greyed. This Cl fixes this. The bug is introduced by: https://codereview.chromium.org/1964323002/patch/1/10001 When CardUnmaskPrompt is created. mShouldRequestExpirationDate is false. So CalendarTask() is never executed: https://cs.chromium.org/chromium/src/chrome/android/java/src/org/chromium/chrome/browser/autofill/CardUnmaskPrompt.java?l=207 After onNewCardLinkClicked(), mShouldRequestExpirationDate is true. That's why getExpirationDateErrorType is always returning ERROR_TYPE_NOT_ENOUGH_INFO: https://cs.chromium.org/chromium/src/chrome/android/java/src/org/chromium/chrome/browser/autofill/CardUnmaskPrompt.java?l=615 We need to execute CalendarTask() from somewhere. BUG=706143 Review-Url: https://codereview.chromium.org/2784663002 Cr-Commit-Position: refs/heads/master@{#461241}