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

Issue 2550293002: [sync] Add autofill sync metadata to the web db (Closed)

Created:
4 years ago by Patrick Noland
Modified:
4 years ago
CC:
chromium-reviews, rouslan+autofill_chromium.org, sebsg+autofillwatch_chromium.org, browser-components-watch_chromium.org, jdonnelly+autofillwatch_chromium.org, mathp+autofillwatch_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org, sync-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[sync] Add autofill sync metadata to the web db Two types of sync metadata, once stored in the sync directory, are now being migrated to the web database. These two types are the per-entry EntityMetadata and the ModelTypeState, which is globalstate for the autofill model type. This change adds a migration to add the tables and functions on AutofillTable to read/write/delete it, with associated tests. BUG=671832 R=shess@chromium.org,mathp@chromium.org,pavely@chromium.org Committed: https://crrev.com/285a1dabd3a38350900c07648b91a74aeacb2089 Cr-Commit-Position: refs/heads/master@{#437722}

Patch Set 1 : [sync] Add autofill sync metadata to the web db #

Total comments: 8

Patch Set 2 : Switch to exclusive use of GetAllSyncMetadata #

Total comments: 6

Patch Set 3 : Return a metadata batch; use id instead of rowid #

Unified diffs Side-by-side diffs Delta from patch set Stats (+363 lines, -5 lines) Patch
M components/autofill/core/browser/webdata/autofill_table.h View 1 2 7 chunks +50 lines, -0 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_table.cc View 1 2 6 chunks +160 lines, -2 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_table_unittest.cc View 1 2 2 chunks +88 lines, -0 lines 0 comments Download
A components/test/data/web_database/version_69.sql View 1 chunk +29 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 1 chunk +2 lines, -2 lines 0 comments Download
M components/webdata/common/web_database_migration_unittest.cc View 2 chunks +33 lines, -1 line 0 comments Download

Messages

Total messages: 52 (39 generated)
Mathieu
lgtm, thanks https://codereview.chromium.org/2550293002/diff/80001/components/autofill/core/browser/webdata/autofill_table.cc File components/autofill/core/browser/webdata/autofill_table.cc (right): https://codereview.chromium.org/2550293002/diff/80001/components/autofill/core/browser/webdata/autofill_table.cc#newcode2461 components/autofill/core/browser/webdata/autofill_table.cc:2461: nit: remove extra line to be consistent
4 years ago (2016-12-07 16:17:42 UTC) #23
Patrick Noland
pavel, PTAL shess, PTAL at components/webdata/common/*
4 years ago (2016-12-07 22:12:36 UTC) #24
Scott Hess - ex-Googler
https://codereview.chromium.org/2550293002/diff/80001/components/autofill/core/browser/webdata/autofill_table.cc File components/autofill/core/browser/webdata/autofill_table.cc (right): https://codereview.chromium.org/2550293002/diff/80001/components/autofill/core/browser/webdata/autofill_table.cc#newcode2001 components/autofill/core/browser/webdata/autofill_table.cc:2001: "value BLOB)")) { I'd drop a NOT NULL in ...
4 years ago (2016-12-07 23:15:20 UTC) #25
maxbogue
https://codereview.chromium.org/2550293002/diff/100001/components/autofill/core/browser/webdata/autofill_table.h File components/autofill/core/browser/webdata/autofill_table.h (right): https://codereview.chromium.org/2550293002/diff/100001/components/autofill/core/browser/webdata/autofill_table.h#newcode446 components/autofill/core/browser/webdata/autofill_table.h:446: sync_pb::ModelTypeState& model_type_state); const
4 years ago (2016-12-08 21:14:05 UTC) #28
Patrick Noland
PTAL https://codereview.chromium.org/2550293002/diff/80001/components/autofill/core/browser/webdata/autofill_table.cc File components/autofill/core/browser/webdata/autofill_table.cc (right): https://codereview.chromium.org/2550293002/diff/80001/components/autofill/core/browser/webdata/autofill_table.cc#newcode2001 components/autofill/core/browser/webdata/autofill_table.cc:2001: "value BLOB)")) { On 2016/12/07 23:15:20, Scott Hess ...
4 years ago (2016-12-08 22:51:14 UTC) #31
Scott Hess - ex-Googler
OK, LGTM. Hmm. WRT the rowid usage, just so you know, unbound rowid is a ...
4 years ago (2016-12-08 23:24:01 UTC) #32
pavely
lgtm % Scott's comments. https://codereview.chromium.org/2550293002/diff/100001/components/autofill/core/browser/webdata/autofill_table.h File components/autofill/core/browser/webdata/autofill_table.h (right): https://codereview.chromium.org/2550293002/diff/100001/components/autofill/core/browser/webdata/autofill_table.h#newcode428 components/autofill/core/browser/webdata/autofill_table.h:428: syncer::EntityMetadataMap* metadata_records); Since you are ...
4 years ago (2016-12-08 23:34:46 UTC) #33
maxbogue
https://codereview.chromium.org/2550293002/diff/100001/components/autofill/core/browser/webdata/autofill_table.cc File components/autofill/core/browser/webdata/autofill_table.cc (right): https://codereview.chromium.org/2550293002/diff/100001/components/autofill/core/browser/webdata/autofill_table.cc#newcode1691 components/autofill/core/browser/webdata/autofill_table.cc:1691: bool AutofillTable::GetAllSyncMetadata( As we discussed offline, please combine this ...
4 years ago (2016-12-09 00:18:13 UTC) #34
Patrick Noland
On 2016/12/08 23:24:01, Scott Hess wrote: > OK, LGTM. > > Hmm. WRT the rowid ...
4 years ago (2016-12-10 00:39:18 UTC) #43
Patrick Noland
https://codereview.chromium.org/2550293002/diff/100001/components/autofill/core/browser/webdata/autofill_table.cc File components/autofill/core/browser/webdata/autofill_table.cc (right): https://codereview.chromium.org/2550293002/diff/100001/components/autofill/core/browser/webdata/autofill_table.cc#newcode1691 components/autofill/core/browser/webdata/autofill_table.cc:1691: bool AutofillTable::GetAllSyncMetadata( On 2016/12/09 00:18:13, maxbogue wrote: > As ...
4 years ago (2016-12-10 00:39:35 UTC) #44
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/2550293002/140001
4 years ago (2016-12-10 00:40:28 UTC) #47
commit-bot: I haz the power
Committed patchset #3 (id:140001)
4 years ago (2016-12-10 02:05:45 UTC) #50
commit-bot: I haz the power
4 years ago (2016-12-12 15:05:19 UTC) #52
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/285a1dabd3a38350900c07648b91a74aeacb2089
Cr-Commit-Position: refs/heads/master@{#437722}

Powered by Google App Engine
This is Rietveld 408576698