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

Issue 6650014: Autofill extend profiles to include multi-valued fields, part 2. (Closed)

Created:
9 years, 9 months ago by dhollowa
Modified:
9 years, 7 months ago
Reviewers:
Ilya Sherman
CC:
chromium-reviews, Ilya Sherman, Paweł Hajdan Jr., James Hawkins, dhollowa
Visibility:
Public.

Description

Autofill extend profiles to include multi-valued fields, part 2. No functional change. This partitions the |ContactInfo| class into separate name, email, and company parts. AutoFillProfile is changed to store its component members directly instead of in a map (in preparation for multiple values). And the |Clone| operation is deprecated from the |FormGroup| class on down through the inheritance tree. BUG=65625 TEST=All existing unit tests. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=77425

Patch Set 1 #

Total comments: 28

Patch Set 2 : Remove pragmas. #

Patch Set 3 : Addressing review comments. #

Total comments: 2

Patch Set 4 : Nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+472 lines, -380 lines) Patch
M chrome/browser/autofill/address.h View 2 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/autofill/address.cc View 2 chunks +17 lines, -14 lines 0 comments Download
M chrome/browser/autofill/autofill_manager_unittest.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/autofill/autofill_profile.h View 1 2 6 chunks +25 lines, -14 lines 0 comments Download
M chrome/browser/autofill/autofill_profile.cc View 1 2 5 chunks +73 lines, -73 lines 0 comments Download
M chrome/browser/autofill/autofill_profile_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/autofill/autofill_type.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/autofill/autofill_type.cc View 2 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/autofill/autofill_type_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/autofill/contact_info.h View 1 2 6 chunks +61 lines, -28 lines 0 comments Download
M chrome/browser/autofill/contact_info.cc View 1 2 3 14 chunks +203 lines, -136 lines 0 comments Download
M chrome/browser/autofill/contact_info_unittest.cc View 1 chunk +26 lines, -52 lines 0 comments Download
M chrome/browser/autofill/credit_card.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/autofill/credit_card.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/autofill/fax_number.h View 1 2 3 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/autofill/fax_number.cc View 1 2 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/autofill/form_group.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/autofill/home_phone_number.h View 3 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/autofill/home_phone_number.cc View 1 chunk +12 lines, -3 lines 0 comments Download
M chrome/browser/autofill/phone_number.h View 2 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/autofill/phone_number.cc View 2 chunks +14 lines, -8 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
dhollowa
9 years, 9 months ago (2011-03-08 23:59:22 UTC) #1
Ilya Sherman
http://codereview.chromium.org/6650014/diff/1/chrome/browser/autofill/autofill_manager_unittest.cc File chrome/browser/autofill/autofill_manager_unittest.cc (right): http://codereview.chromium.org/6650014/diff/1/chrome/browser/autofill/autofill_manager_unittest.cc#newcode678 chrome/browser/autofill/autofill_manager_unittest.cc:678: "00000000-0000-0000-0000-000000000001"))); Won't this leak memory? Or did we have ...
9 years, 9 months ago (2011-03-09 00:50:50 UTC) #2
dhollowa
http://codereview.chromium.org/6650014/diff/1/chrome/browser/autofill/autofill_manager_unittest.cc File chrome/browser/autofill/autofill_manager_unittest.cc (right): http://codereview.chromium.org/6650014/diff/1/chrome/browser/autofill/autofill_manager_unittest.cc#newcode678 chrome/browser/autofill/autofill_manager_unittest.cc:678: "00000000-0000-0000-0000-000000000001"))); No, this AddProfile call takes ownership. It adds ...
9 years, 9 months ago (2011-03-09 01:55:46 UTC) #3
Ilya Sherman
http://codereview.chromium.org/6650014/diff/1/chrome/browser/autofill/autofill_profile.cc File chrome/browser/autofill/autofill_profile.cc (right): http://codereview.chromium.org/6650014/diff/1/chrome/browser/autofill/autofill_profile.cc#newcode155 chrome/browser/autofill/autofill_profile.cc:155: FormGroupMap info = info_map(); On 2011/03/09 01:55:47, dhollowa wrote: ...
9 years, 9 months ago (2011-03-09 02:01:22 UTC) #4
Ilya Sherman
LGTM (As discussed offline, the two points from my previous comment will be looked at ...
9 years, 9 months ago (2011-03-09 02:19:13 UTC) #5
dhollowa
9 years, 9 months ago (2011-03-09 03:11:50 UTC) #6
http://codereview.chromium.org/6650014/diff/10001/chrome/browser/autofill/con...
File chrome/browser/autofill/contact_info.cc (right):

http://codereview.chromium.org/6650014/diff/10001/chrome/browser/autofill/con...
chrome/browser/autofill/contact_info.cc:411: }
On 2011/03/09 02:19:13, Ilya Sherman wrote:
> nit: We can simplify a bit by combining the outer if/else clauses here, and
> below as well.

Done.

Powered by Google App Engine
This is Rietveld 408576698