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

Issue 1811543002: [Autofill] Fill text state fields that have a max length of 2 with the state abbreviation. (Closed)

Created:
4 years, 9 months ago by sebsg
Modified:
4 years, 9 months ago
CC:
chromium-reviews, rouslan+autofill_chromium.org, browser-components-watch_chromium.org, jdonnelly+autofillwatch_chromium.org, bondd+autofillwatch_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

Some text state fields have a maxlength of two. This can cause problem for some states. For example New York is filled as NE (Nebraska) instead of NY. BUG=595104 TEST=AutofillFieldTest Committed: https://crrev.com/f72852358bb018390318b4b95775294f0a429eb8 Cr-Commit-Position: refs/heads/master@{#381792}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Addressed comments and made code more robust #

Total comments: 2

Patch Set 3 : Nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -0 lines) Patch
M components/autofill/core/browser/autofill_field.cc View 1 2 3 chunks +24 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_field_unittest.cc View 1 1 chunk +47 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (10 generated)
sebsg
Could you please take a look? Thanks!
4 years, 9 months ago (2016-03-16 15:06:38 UTC) #2
vabr (Chromium)
Hi Sebastien, LGTM with comments. Cheers, Vaclav https://codereview.chromium.org/1811543002/diff/1/components/autofill/core/browser/autofill_field.cc File components/autofill/core/browser/autofill_field.cc (right): https://codereview.chromium.org/1811543002/diff/1/components/autofill/core/browser/autofill_field.cc#newcode422 components/autofill/core/browser/autofill_field.cc:422: if (field->max_length ...
4 years, 9 months ago (2016-03-16 16:38:45 UTC) #4
sebsg
Thanks for the review! Could you take another look when you get the chance? Thanks! ...
4 years, 9 months ago (2016-03-16 23:41:01 UTC) #7
vabr (Chromium)
LGTM, thank you! Vaclav https://codereview.chromium.org/1811543002/diff/1/components/autofill/core/browser/autofill_field.cc File components/autofill/core/browser/autofill_field.cc (right): https://codereview.chromium.org/1811543002/diff/1/components/autofill/core/browser/autofill_field.cc#newcode422 components/autofill/core/browser/autofill_field.cc:422: if (field->max_length != 2) { ...
4 years, 9 months ago (2016-03-17 09:03:37 UTC) #8
sebsg
Thanks! https://codereview.chromium.org/1811543002/diff/60001/components/autofill/core/browser/autofill_field.cc File components/autofill/core/browser/autofill_field.cc (right): https://codereview.chromium.org/1811543002/diff/60001/components/autofill/core/browser/autofill_field.cc#newcode431 components/autofill/core/browser/autofill_field.cc:431: if (abbreviation.size() != 0 && field->max_length >= abbreviation.size()) ...
4 years, 9 months ago (2016-03-17 14:46:09 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1811543002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1811543002/80001
4 years, 9 months ago (2016-03-17 14:46:32 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/118779)
4 years, 9 months ago (2016-03-17 16:20:47 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1811543002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1811543002/80001
4 years, 9 months ago (2016-03-17 20:19:47 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:80001)
4 years, 9 months ago (2016-03-17 20:52:24 UTC) #18
commit-bot: I haz the power
4 years, 9 months ago (2016-03-17 20:55:07 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/f72852358bb018390318b4b95775294f0a429eb8
Cr-Commit-Position: refs/heads/master@{#381792}

Powered by Google App Engine
This is Rietveld 408576698