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

Issue 2078016: AutoFill fill billing address when credit card settings specify a billing address. (Closed)

Created:
10 years, 7 months ago by dhollowa
Modified:
9 years, 7 months ago
Reviewers:
GeorgeY, James Hawkins
CC:
chromium-reviews, Paweł Hajdan Jr., darin-cc_chromium.org, ben+cc_chromium.org, jam+cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

AutoFill fill billing address when credit card settings specify a billing address. Fixes address type matching in |AddressField::AddressTypeFromText| method. Also, extends |AutoFillManager::FillAutoFillFormData| method to fill associated billing address when filling a credit card that has billing information set in preferences. Adds new unit test AutoFillManagerTest.FillCreditCardFormWithBilling and fixes others. BUG=44227 TEST=AddressFieldTest.ParseOneLineAddress, \ AddressFieldTest.ParseOneLineAddressBilling, \ AddressFieldTest.ParseOneLineAddressShipping, \ AutoFillManagerTest.FillCreditCardForm, \ AutoFillManagerTest.FillCreditCardFormWithBilling, \ FormStructureTest.HeuristicsSample8, \ and manual test with everything2.html bug file. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=47731

Patch Set 1 #

Total comments: 18

Patch Set 2 : Addressing review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+318 lines, -136 lines) Patch
M chrome/browser/autofill/address_field.cc View 1 1 chunk +11 lines, -5 lines 0 comments Download
M chrome/browser/autofill/address_field_unittest.cc View 4 chunks +43 lines, -3 lines 0 comments Download
M chrome/browser/autofill/autofill_manager.h View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/autofill/autofill_manager.cc View 2 chunks +28 lines, -0 lines 0 comments Download
M chrome/browser/autofill/autofill_manager_unittest.cc View 1 4 chunks +123 lines, -40 lines 0 comments Download
M chrome/browser/autofill/form_structure_unittest.cc View 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/renderer/form_manager_unittest.cc View 32 chunks +80 lines, -80 lines 0 comments Download
M webkit/glue/form_field.h View 1 1 chunk +8 lines, -0 lines 0 comments Download
M webkit/glue/form_field.cc View 1 1 chunk +11 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
dhollowa
10 years, 7 months ago (2010-05-18 22:36:48 UTC) #1
dhollowa
10 years, 7 months ago (2010-05-18 22:37:51 UTC) #2
GeorgeY
LGTM
10 years, 7 months ago (2010-05-18 22:51:33 UTC) #3
James Hawkins
http://codereview.chromium.org/2078016/diff/1/2 File chrome/browser/autofill/address_field.cc (right): http://codereview.chromium.org/2078016/diff/1/2#newcode404 chrome/browser/autofill/address_field.cc:404: else nit: no need for else. http://codereview.chromium.org/2078016/diff/1/6 File chrome/browser/autofill/autofill_manager_unittest.cc ...
10 years, 7 months ago (2010-05-19 00:22:47 UTC) #4
dhollowa
http://codereview.chromium.org/2078016/diff/1/2 File chrome/browser/autofill/address_field.cc (right): http://codereview.chromium.org/2078016/diff/1/2#newcode404 chrome/browser/autofill/address_field.cc:404: else On 2010/05/19 00:22:48, James Hawkins wrote: > nit: ...
10 years, 7 months ago (2010-05-19 02:04:24 UTC) #5
James Hawkins
http://codereview.chromium.org/2078016/diff/1/6 File chrome/browser/autofill/autofill_manager_unittest.cc (right): http://codereview.chromium.org/2078016/diff/1/6#newcode420 chrome/browser/autofill/autofill_manager_unittest.cc:420: CreateTestFormField("First Name", "firstname", "", "text", &field); On 2010/05/19 02:04:24, ...
10 years, 7 months ago (2010-05-19 20:50:48 UTC) #6
dhollowa
http://codereview.chromium.org/2078016/diff/1/6 File chrome/browser/autofill/autofill_manager_unittest.cc (right): http://codereview.chromium.org/2078016/diff/1/6#newcode420 chrome/browser/autofill/autofill_manager_unittest.cc:420: CreateTestFormField("First Name", "firstname", "", "text", &field); On 2010/05/19 20:50:48, ...
10 years, 7 months ago (2010-05-19 21:28:06 UTC) #7
James Hawkins
10 years, 7 months ago (2010-05-19 21:34:25 UTC) #8
Ok, LGTM

Powered by Google App Engine
This is Rietveld 408576698