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

Issue 1007003007: Clear wallet data from autofill when disabled. (Closed)

Created:
5 years, 9 months ago by brettw
Modified:
5 years, 9 months ago
Reviewers:
Evan Stade
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

Clear wallet data from autofill when disabled. Re-mask all unmasked cards when the user disables autofill integration. Delete all server cards and addresses when the user disables the sync type or stops syncing. Fix a bug where addresses were always written to the DB on startup because profiles were being created differently from protos than they were from sqlite so wouldn't match. Optimize autofill profile comparisons. I was offended by the number of autofill profile and card comparisons we do at startup, the small number of items in the list means std::set is operating at a worst-case. I switched to brute-force with a "give up and rewrite the data" escape valve if you have a large number of addresses. BUG=450843 Committed: https://crrev.com/293968ff9a7b053e518eebc4e3c6233fefaf842a Cr-Commit-Position: refs/heads/master@{#321406}

Patch Set 1 #

Patch Set 2 : grammar #

Patch Set 3 : comment #

Total comments: 4

Patch Set 4 : #

Patch Set 5 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -23 lines) Patch
M components/autofill/core/browser/personal_data_manager.h View 1 chunk +0 lines, -1 line 0 comments Download
M components/autofill/core/browser/personal_data_manager.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_table.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_wallet_syncable_service.cc View 1 2 3 4 chunks +43 lines, -22 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
brettw
5 years, 9 months ago (2015-03-16 23:58:35 UTC) #2
Evan Stade
nit: cl description is missing "BUG=" lgtm https://codereview.chromium.org/1007003007/diff/40001/components/autofill/core/browser/personal_data_manager.cc File components/autofill/core/browser/personal_data_manager.cc (right): https://codereview.chromium.org/1007003007/diff/40001/components/autofill/core/browser/personal_data_manager.cc#newcode1342 components/autofill/core/browser/personal_data_manager.cc:1342: !server_credit_cards_.empty()) { ...
5 years, 9 months ago (2015-03-17 01:26:54 UTC) #3
brettw
https://codereview.chromium.org/1007003007/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/1007003007/diff/40001/components/autofill/core/browser/webdata/autofill_wallet_syncable_service.cc#newcode154 components/autofill/core/browser/webdata/autofill_wallet_syncable_service.cc:154: // set sizes, brute force O(n^2) is faster. No, ...
5 years, 9 months ago (2015-03-19 16:39:39 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1007003007/80001
5 years, 9 months ago (2015-03-19 18:21:22 UTC) #7
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 9 months ago (2015-03-19 19:23:21 UTC) #8
commit-bot: I haz the power
5 years, 9 months ago (2015-03-19 19:24:28 UTC) #9
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/293968ff9a7b053e518eebc4e3c6233fefaf842a
Cr-Commit-Position: refs/heads/master@{#321406}

Powered by Google App Engine
This is Rietveld 408576698