Delete unmasked credit cards when clearing data.
commitd5f6753b6f03e4f70344b4767f67c344464531e7
authorbrettw <brettw@chromium.org>
Sat, 7 Mar 2015 00:09:17 +0000 (6 16:09 -0800)
committerCommit bot <commit-bot@chromium.org>
Sat, 7 Mar 2015 00:09:54 +0000 (7 00:09 +0000)
tree6264edb844909a503301c4921614b460892e5d0d
parent5b384ff65774adbc6fce7bc6a76be4b6eafd16d9
Delete unmasked credit cards when clearing data.

This hooks up unmasked server credit cards to the Chrome clear private data feature. When all data is cleared, all cards will be re-masked.

For time ranges, only cards unmasked in that time range will be re-masked. The use-case for re-masking cards unmasked in the past hour is very weak, but we just don't want to re-mask cards that you unmasked a long time ago, and this is how everything else works.

This adds a "phone number" column to the server address table. This will be hooked up in a future patch. Doing it here saves another database version bump.

Review URL: https://codereview.chromium.org/967453005

Cr-Commit-Position: refs/heads/master@{#319531}
components/autofill/core/browser/webdata/autofill_table.cc
components/autofill/core/browser/webdata/autofill_table.h
components/autofill/core/browser/webdata/autofill_table_unittest.cc
components/test/data/web_database/version_63.sql [new file with mode: 0644]
components/webdata/common/web_database.cc
components/webdata/common/web_database_migration_unittest.cc