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

Issue 2626843004: [Payments] Add billing_address_id and has_converted to autofill_table (Closed)

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

Description

[Payments] Add billing_address_id and has_converted to autofill_table Adds the billing_address_id column to the server_card_metadata table and add the has_converted column to the server_address_metadata table in autofill_table. This CL does not modify any user noticeable behavior but is a stepping stone towards converting Wallet addresses to Autofill profiles and preserving the billing address relation ship. Both fields were added to the metadata tables, because those are intended to be read-write and used to sync this modifiable info across Chrome instances. BUG=680178 Review-Url: https://codereview.chromium.org/2626843004 Cr-Commit-Position: refs/heads/master@{#445949} Committed: https://chromium.googlesource.com/chromium/src/+/3e77d95a76768a00bfb8cffc4799b52e640c1ae7

Patch Set 1 #

Total comments: 16

Patch Set 2 : Migrate billing_address_id data #

Patch Set 3 : Rebase #

Total comments: 4

Patch Set 4 : Addressed Rouslan's comments #

Total comments: 2

Patch Set 5 : Don't update compatible version #

Patch Set 6 : Moved data instead of copying #

Patch Set 7 : Rebase #

Patch Set 8 : Fixed android compile failure in test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+275 lines, -183 lines) Patch
M components/autofill/core/browser/personal_data_manager.cc View 1 2 3 4 5 6 3 chunks +4 lines, -19 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_table.h View 1 2 3 4 5 6 chunks +11 lines, -8 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_table.cc View 1 2 3 4 5 14 chunks +109 lines, -55 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_table_unittest.cc View 6 chunks +8 lines, -30 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_wallet_metadata_syncable_service.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_webdata.h View 1 1 chunk +4 lines, -9 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_webdata_backend_impl.h View 1 2 3 4 1 chunk +4 lines, -10 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc View 3 chunks +4 lines, -21 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_webdata_service.h View 1 chunk +2 lines, -3 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_webdata_service.cc View 1 2 3 4 1 chunk +6 lines, -16 lines 0 comments Download
A components/test/data/web_database/version_70.sql View 1 2 3 4 5 1 chunk +34 lines, -0 lines 0 comments Download
M components/webdata/common/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M components/webdata/common/web_database.cc View 5 1 chunk +2 lines, -2 lines 0 comments Download
M components/webdata/common/web_database_migration_unittest.cc View 1 2 3 4 5 6 7 4 chunks +84 lines, -8 lines 0 comments Download

Messages

Total messages: 48 (34 generated)
sebsg
Hi Rouslan, PTAL?
3 years, 11 months ago (2017-01-11 18:17:49 UTC) #3
please use gerrit instead
I'm not super clear on how these new columns will be used. Two different columns ...
3 years, 11 months ago (2017-01-11 19:23:03 UTC) #8
sebsg
Thanks! Another look? https://codereview.chromium.org/2626843004/diff/20001/components/autofill/core/browser/personal_data_manager.cc File components/autofill/core/browser/personal_data_manager.cc (right): https://codereview.chromium.org/2626843004/diff/20001/components/autofill/core/browser/personal_data_manager.cc#newcode653 components/autofill/core/browser/personal_data_manager.cc:653: if (is_off_the_record_ || !database_.get()) On 2017/01/11 ...
3 years, 11 months ago (2017-01-12 15:36:31 UTC) #12
please use gerrit instead
lgtm % comments https://codereview.chromium.org/2626843004/diff/60001/components/autofill/core/browser/webdata/autofill_table.h File components/autofill/core/browser/webdata/autofill_table.h (right): https://codereview.chromium.org/2626843004/diff/60001/components/autofill/core/browser/webdata/autofill_table.h#newcode195 components/autofill/core/browser/webdata/autofill_table.h:195: // billing_address_id The guid string that ...
3 years, 11 months ago (2017-01-12 19:10:59 UTC) #18
sebsg
Hi pkasting@, could you please take a look at the files in components/webdata/* ? Thanks! ...
3 years, 11 months ago (2017-01-12 19:21:13 UTC) #20
Peter Kasting
I'm unclear on the compatible version handling here. In one place, you seem to be ...
3 years, 11 months ago (2017-01-12 23:37:48 UTC) #21
sebsg
Hi Peter, thanks for the comments. From what I understand now, I think copying might ...
3 years, 11 months ago (2017-01-13 15:23:10 UTC) #22
Peter Kasting
On 2017/01/13 15:23:10, sebsg wrote: > Hi Peter, thanks for the comments. From what I ...
3 years, 11 months ago (2017-01-17 20:54:22 UTC) #23
sebsg
I see, thanks for the explanation! Could you take another? Thanks!
3 years, 11 months ago (2017-01-18 18:32:54 UTC) #27
Peter Kasting
components/webdata LGTM, but I did not review the autofill code (meat of the change), which ...
3 years, 11 months ago (2017-01-24 21:13:31 UTC) #39
sebsg
Thanks Peter! +mathp for the Autofill code.
3 years, 11 months ago (2017-01-24 21:24:10 UTC) #41
Mathieu
lgtm, thanks
3 years, 11 months ago (2017-01-25 03:04:30 UTC) #42
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/2626843004/180001
3 years, 11 months ago (2017-01-25 03:28:59 UTC) #45
commit-bot: I haz the power
3 years, 11 months ago (2017-01-25 04:52:15 UTC) #48
Message was sent while issue was closed.
Committed patchset #8 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/3e77d95a76768a00bfb8cffc4799...

Powered by Google App Engine
This is Rietveld 408576698