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

Issue 2619423002: [Payments] Preserve Wallet's card to billing address link after sync. (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
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Payments] Preserve Wallet's card to billing address link after sync. Uses the relationship between a card and its billing address pulled from sync to populate the billing_address_id of the generated CreditCard object. Overwrites the billing_address_id saved on disk only if it is not 36 characters long, which would represent a local profile. This only happens if the user manually associated the Card to a local Autofill Profile in PaymentRequest. BUG=679466 Review-Url: https://codereview.chromium.org/2619423002 Cr-Commit-Position: refs/heads/master@{#442610} Committed: https://chromium.googlesource.com/chromium/src/+/d46ba3e386640479b40c62ce9e7e53d61f4baa65

Patch Set 1 #

Total comments: 30

Patch Set 2 : Addressed comments #

Total comments: 2

Patch Set 3 : Fixed comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+258 lines, -37 lines) Patch
M components/autofill/core/browser/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_table.h View 1 2 3 chunks +6 lines, -6 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_table.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_wallet_syncable_service.h View 1 2 chunks +28 lines, -0 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_wallet_syncable_service.cc View 1 7 chunks +56 lines, -29 lines 0 comments Download
A components/autofill/core/browser/webdata/autofill_wallet_syncable_service_unittest.cc View 1 1 chunk +165 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (23 generated)
sebsg
Hi Rouslan, PTAL Thanks!
3 years, 11 months ago (2017-01-09 21:49:49 UTC) #7
please use gerrit instead
Good stuff! https://codereview.chromium.org/2619423002/diff/40001/components/autofill/core/browser/webdata/autofill_wallet_syncable_service.cc File components/autofill/core/browser/webdata/autofill_wallet_syncable_service.cc (right): https://codereview.chromium.org/2619423002/diff/40001/components/autofill/core/browser/webdata/autofill_wallet_syncable_service.cc#newcode24 components/autofill/core/browser/webdata/autofill_wallet_syncable_service.cc:24: const int kLocalGuidSize = 36; Comment. https://codereview.chromium.org/2619423002/diff/40001/components/autofill/core/browser/webdata/autofill_wallet_syncable_service.cc#newcode77 ...
3 years, 11 months ago (2017-01-09 22:28:17 UTC) #9
sebsg
Thanks! Another look? https://codereview.chromium.org/2619423002/diff/40001/components/autofill/core/browser/webdata/autofill_wallet_syncable_service.cc File components/autofill/core/browser/webdata/autofill_wallet_syncable_service.cc (right): https://codereview.chromium.org/2619423002/diff/40001/components/autofill/core/browser/webdata/autofill_wallet_syncable_service.cc#newcode24 components/autofill/core/browser/webdata/autofill_wallet_syncable_service.cc:24: const int kLocalGuidSize = 36; On ...
3 years, 11 months ago (2017-01-10 14:39:42 UTC) #18
please use gerrit instead
lgtm https://codereview.chromium.org/2619423002/diff/100001/components/autofill/core/browser/webdata/autofill_table.h File components/autofill/core/browser/webdata/autofill_table.h (right): https://codereview.chromium.org/2619423002/diff/100001/components/autofill/core/browser/webdata/autofill_table.h#newcode170 components/autofill/core/browser/webdata/autofill_table.h:170: // billing_address_id The guid string that identifies the ...
3 years, 11 months ago (2017-01-10 15:24:21 UTC) #19
sebsg
Thanks! sending to CQ https://codereview.chromium.org/2619423002/diff/100001/components/autofill/core/browser/webdata/autofill_table.h File components/autofill/core/browser/webdata/autofill_table.h (right): https://codereview.chromium.org/2619423002/diff/100001/components/autofill/core/browser/webdata/autofill_table.h#newcode170 components/autofill/core/browser/webdata/autofill_table.h:170: // billing_address_id The guid string ...
3 years, 11 months ago (2017-01-10 16:31:44 UTC) #24
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/2619423002/120001
3 years, 11 months ago (2017-01-10 16:32:18 UTC) #27
commit-bot: I haz the power
3 years, 11 months ago (2017-01-10 16:39:33 UTC) #30
Message was sent while issue was closed.
Committed patchset #3 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/d46ba3e386640479b40c62ce9e7e...

Powered by Google App Engine
This is Rietveld 408576698