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

Issue 1042353003: Create syncable metadata table for Wallet credit cards and addresses. (Closed)

Created:
5 years, 8 months ago by Evan Stade
Modified:
5 years, 8 months ago
Reviewers:
brettw
CC:
chromium-reviews, estade+watch_chromium.org, browser-components-watch_chromium.org, rouslan+autofillwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Create syncable metadata table for Wallet credit cards and addresses. This is only used for usage statistics (without which we can't apply smart ordering to masked credit card suggestions, or sync usage stats between devices for unmasked cards). There was already code in place for IDs for addresses, which was essentially unused (ID was always empty). This generates an ID to help identify server addresses for the usage stat tracking. The tables are not actually synced yet (that's TODO). BUG=none Committed: https://crrev.com/378d323b7aa68cddef9429901a7992c4b6346c85 Cr-Commit-Position: refs/heads/master@{#324142}

Patch Set 1 #

Patch Set 2 : wip #

Patch Set 3 : addresses done #

Patch Set 4 : add address id #

Patch Set 5 : tested #

Patch Set 6 : docs #

Total comments: 15

Patch Set 7 : brettw review #

Patch Set 8 : fix pdm test #

Patch Set 9 : comment about migration code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+561 lines, -109 lines) Patch
M components/autofill/core/browser/autofill_profile.h View 1 2 3 4 5 6 3 chunks +9 lines, -2 lines 0 comments Download
M components/autofill/core/browser/autofill_profile.cc View 1 2 3 4 5 6 4 chunks +25 lines, -1 line 0 comments Download
M components/autofill/core/browser/autofill_test_utils.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/browser/personal_data_manager.cc View 1 2 3 chunks +10 lines, -11 lines 0 comments Download
M components/autofill/core/browser/personal_data_manager_unittest.cc View 1 2 3 4 5 6 7 4 chunks +28 lines, -1 line 0 comments Download
M components/autofill/core/browser/webdata/autofill_table.h View 1 2 3 4 5 6 7 8 6 chunks +35 lines, -8 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_table.cc View 1 2 3 4 5 6 14 chunks +242 lines, -54 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_table_unittest.cc View 1 2 6 chunks +107 lines, -4 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_wallet_syncable_service.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M components/autofill/core/browser/webdata/autofill_webdata.h View 1 2 1 chunk +7 lines, -3 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_webdata_backend_impl.h View 1 2 1 chunk +6 lines, -2 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc View 1 2 2 chunks +15 lines, -4 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_webdata_service.h View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_webdata_service.cc View 1 2 2 chunks +12 lines, -4 lines 0 comments Download
A + components/test/data/web_database/version_64.sql View 1 2 2 chunks +8 lines, -8 lines 0 comments Download
M components/webdata/common/web_database.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/webdata/common/web_database_migration_unittest.cc View 1 2 3 4 2 chunks +48 lines, -1 line 0 comments Download
M sync/protocol/autofill_specifics.proto View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (3 generated)
Evan Stade
this WIP is not ready for full review, but I'd like to get your feedback ...
5 years, 8 months ago (2015-03-31 00:49:26 UTC) #2
brettw
Didn't look at the details but the concept of a separate table for this seems ...
5 years, 8 months ago (2015-04-01 22:22:35 UTC) #3
Evan Stade
ready for real review
5 years, 8 months ago (2015-04-06 23:24:07 UTC) #4
brettw
https://codereview.chromium.org/1042353003/diff/100001/components/autofill/core/browser/autofill_profile.cc File components/autofill/core/browser/autofill_profile.cc (right): https://codereview.chromium.org/1042353003/diff/100001/components/autofill/core/browser/autofill_profile.cc#newcode833 components/autofill/core/browser/autofill_profile.cc:833: std::string contents = I would write this with different ...
5 years, 8 months ago (2015-04-07 18:04:06 UTC) #5
Evan Stade
https://codereview.chromium.org/1042353003/diff/100001/components/autofill/core/browser/autofill_profile.cc File components/autofill/core/browser/autofill_profile.cc (right): https://codereview.chromium.org/1042353003/diff/100001/components/autofill/core/browser/autofill_profile.cc#newcode833 components/autofill/core/browser/autofill_profile.cc:833: std::string contents = On 2015/04/07 18:04:06, brettw wrote: > ...
5 years, 8 months ago (2015-04-07 19:23:32 UTC) #6
brettw
lgtm https://codereview.chromium.org/1042353003/diff/100001/components/autofill/core/browser/webdata/autofill_table.cc File components/autofill/core/browser/webdata/autofill_table.cc (right): https://codereview.chromium.org/1042353003/diff/100001/components/autofill/core/browser/webdata/autofill_table.cc#newcode2231 components/autofill/core/browser/webdata/autofill_table.cc:2231: profile.SetRawInfo(COMPANY_NAME, s.ColumnString16(index++)); Oh I see. I think we ...
5 years, 8 months ago (2015-04-07 21:02:31 UTC) #7
Evan Stade
https://codereview.chromium.org/1042353003/diff/100001/components/autofill/core/browser/webdata/autofill_table.cc File components/autofill/core/browser/webdata/autofill_table.cc (right): https://codereview.chromium.org/1042353003/diff/100001/components/autofill/core/browser/webdata/autofill_table.cc#newcode2231 components/autofill/core/browser/webdata/autofill_table.cc:2231: profile.SetRawInfo(COMPANY_NAME, s.ColumnString16(index++)); On 2015/04/07 21:02:31, brettw wrote: > Oh ...
5 years, 8 months ago (2015-04-07 21:26:24 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1042353003/160001
5 years, 8 months ago (2015-04-07 21:27:12 UTC) #11
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 8 months ago (2015-04-07 22:54:20 UTC) #12
commit-bot: I haz the power
5 years, 8 months ago (2015-04-07 22:55:41 UTC) #13
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/378d323b7aa68cddef9429901a7992c4b6346c85
Cr-Commit-Position: refs/heads/master@{#324142}

Powered by Google App Engine
This is Rietveld 408576698