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

Issue 9585020: Cull autofill entries older than 60 days. (Closed)

Created:
8 years, 9 months ago by GeorgeY
Modified:
8 years, 9 months ago
CC:
chromium-reviews, dhollowa+watch_chromium.org, akalin, Nicolas Zea, tim (not reviewing)
Visibility:
Public.

Description

Cull autofill entries older than 60 days. Tested with 20K Autocomplete entries selected 100000 times. 500 of them are in range. ---Start MergeDataAndStartSyncing for autofill Read from db - 7s Sift through them selecting only those needed for update - ~0.5s Process 476 changes - <1s ---End MergeDataAndStartSyncing for autofill - total ~8.5 s Callback back after deleting extra entries - 17s BUG=28990 TEST=unit-test Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=129097

Patch Set 1 #

Patch Set 2 : Fixed the unit test #

Patch Set 3 : Fixed couple of issues #

Patch Set 4 : fix spelling #

Total comments: 21

Patch Set 5 : Addressed comments and added culling when the sync is off. #

Total comments: 2

Patch Set 6 : Changed Autofill to keep only two timestamps #

Patch Set 7 : Fixed clang #

Total comments: 26

Patch Set 8 : Addressed the comments #

Total comments: 34

Patch Set 9 : adressed comments #

Total comments: 17

Patch Set 10 : Addressed comments #

Total comments: 8

Patch Set 11 : addressed comments #

Total comments: 6

Patch Set 12 : #

Patch Set 13 : if (!RemoveFormElementForID(pair_id)) #

Total comments: 12

Patch Set 14 : addressed comments #

Patch Set 15 : addressed comments - re-uploading as the first one failed #

Total comments: 4

Patch Set 16 : fixed error #

Patch Set 17 : Addressed comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+421 lines, -97 lines) Patch
M chrome/browser/autofill/personal_data_manager.cc View 1 2 3 4 5 6 7 2 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_autofill_unittest.cc View 1 2 3 4 5 6 7 2 chunks +13 lines, -8 lines 0 comments Download
M chrome/browser/webdata/autocomplete_syncable_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/webdata/autocomplete_syncable_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 10 chunks +122 lines, -35 lines 0 comments Download
M chrome/browser/webdata/autofill_entry.h View 1 2 3 4 5 6 7 8 2 chunks +11 lines, -6 lines 0 comments Download
M chrome/browser/webdata/autofill_entry.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +29 lines, -12 lines 0 comments Download
M chrome/browser/webdata/autofill_entry_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +41 lines, -11 lines 0 comments Download
M chrome/browser/webdata/autofill_table.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +17 lines, -5 lines 0 comments Download
M chrome/browser/webdata/autofill_table.cc View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +121 lines, -16 lines 0 comments Download
M chrome/browser/webdata/autofill_table_unittest.cc View 1 2 3 4 5 1 chunk +8 lines, -3 lines 0 comments Download
M chrome/browser/webdata/web_data_service.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/webdata/web_data_service.cc View 1 2 3 4 5 6 7 8 2 chunks +32 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
GeorgeY
8 years, 9 months ago (2012-03-05 23:51:23 UTC) #1
Ilya Sherman
I've always wondered: Why do we need to save lots of timestamps alongside each autocomplete ...
8 years, 9 months ago (2012-03-06 08:48:35 UTC) #2
GeorgeY
https://chromiumcodereview.appspot.com/9585020/diff/10001/chrome/browser/webdata/autocomplete_syncable_service.cc File chrome/browser/webdata/autocomplete_syncable_service.cc (right): https://chromiumcodereview.appspot.com/9585020/diff/10001/chrome/browser/webdata/autocomplete_syncable_service.cc#newcode114 chrome/browser/webdata/autocomplete_syncable_service.cc:114: base::TimeDelta::FromDays(AutofillEntry::kExpirationPeriodInDays); On 2012/03/06 08:48:35, Ilya Sherman wrote: > nit: ...
8 years, 9 months ago (2012-03-09 20:14:24 UTC) #3
Ilya Sherman
As discussed offline, it's probably not safe to delete old timestamps from autocomplete items that ...
8 years, 9 months ago (2012-03-09 23:15:21 UTC) #4
GeorgeY
Changed to store only first and last time query. It is a shame that SQL ...
8 years, 9 months ago (2012-03-14 21:55:30 UTC) #5
Ilya Sherman
On 2012/03/14 21:55:30, GeorgeY wrote: > Changed to store only first and last time query. ...
8 years, 9 months ago (2012-03-15 20:47:08 UTC) #6
Ilya Sherman
https://chromiumcodereview.appspot.com/9585020/diff/26001/chrome/browser/autofill/personal_data_manager.cc File chrome/browser/autofill/personal_data_manager.cc (right): https://chromiumcodereview.appspot.com/9585020/diff/26001/chrome/browser/autofill/personal_data_manager.cc#newcode176 chrome/browser/autofill/personal_data_manager.cc:176: wds->RemoveFormElementsAccessedBefore( nit: Can we make this interface simply be ...
8 years, 9 months ago (2012-03-15 21:00:41 UTC) #7
GeorgeY
https://chromiumcodereview.appspot.com/9585020/diff/26001/chrome/browser/autofill/personal_data_manager.cc File chrome/browser/autofill/personal_data_manager.cc (right): https://chromiumcodereview.appspot.com/9585020/diff/26001/chrome/browser/autofill/personal_data_manager.cc#newcode176 chrome/browser/autofill/personal_data_manager.cc:176: wds->RemoveFormElementsAccessedBefore( On 2012/03/15 21:00:41, Ilya Sherman wrote: > nit: ...
8 years, 9 months ago (2012-03-17 00:36:16 UTC) #8
Ilya Sherman
Before we can commit this CL, we'll need to store the number of timestamps, at ...
8 years, 9 months ago (2012-03-19 21:12:51 UTC) #9
GeorgeY
https://chromiumcodereview.appspot.com/9585020/diff/29001/chrome/browser/webdata/autocomplete_syncable_service.cc File chrome/browser/webdata/autocomplete_syncable_service.cc (right): https://chromiumcodereview.appspot.com/9585020/diff/29001/chrome/browser/webdata/autocomplete_syncable_service.cc#newcode135 chrome/browser/webdata/autocomplete_syncable_service.cc:135: if (SyncChange::ACTION_ADD == i->second.first) On 2012/03/19 21:12:51, Ilya Sherman ...
8 years, 9 months ago (2012-03-20 20:47:58 UTC) #10
Ilya Sherman
https://chromiumcodereview.appspot.com/9585020/diff/29001/chrome/browser/webdata/autofill_entry.cc File chrome/browser/webdata/autofill_entry.cc (right): https://chromiumcodereview.appspot.com/9585020/diff/29001/chrome/browser/webdata/autofill_entry.cc#newcode78 chrome/browser/webdata/autofill_entry.cc:78: return (timestamps_.empty() || timestamps_.back() < time); On 2012/03/20 20:47:58, ...
8 years, 9 months ago (2012-03-20 21:25:12 UTC) #11
GeorgeY
https://chromiumcodereview.appspot.com/9585020/diff/29001/chrome/browser/webdata/autofill_entry.cc File chrome/browser/webdata/autofill_entry.cc (right): https://chromiumcodereview.appspot.com/9585020/diff/29001/chrome/browser/webdata/autofill_entry.cc#newcode78 chrome/browser/webdata/autofill_entry.cc:78: return (timestamps_.empty() || timestamps_.back() < time); On 2012/03/20 21:25:13, ...
8 years, 9 months ago (2012-03-21 20:56:40 UTC) #12
Ilya Sherman
https://chromiumcodereview.appspot.com/9585020/diff/29001/chrome/browser/webdata/autofill_entry.cc File chrome/browser/webdata/autofill_entry.cc (right): https://chromiumcodereview.appspot.com/9585020/diff/29001/chrome/browser/webdata/autofill_entry.cc#newcode78 chrome/browser/webdata/autofill_entry.cc:78: return (timestamps_.empty() || timestamps_.back() < time); On 2012/03/21 20:56:40, ...
8 years, 9 months ago (2012-03-21 21:20:53 UTC) #13
GeorgeY
https://chromiumcodereview.appspot.com/9585020/diff/29001/chrome/browser/webdata/autofill_entry.cc File chrome/browser/webdata/autofill_entry.cc (right): https://chromiumcodereview.appspot.com/9585020/diff/29001/chrome/browser/webdata/autofill_entry.cc#newcode78 chrome/browser/webdata/autofill_entry.cc:78: return (timestamps_.empty() || timestamps_.back() < time); On 2012/03/21 21:20:53, ...
8 years, 9 months ago (2012-03-21 22:10:55 UTC) #14
Nicolas Zea
Some comments. http://codereview.chromium.org/9585020/diff/53001/chrome/browser/autofill/personal_data_manager.cc File chrome/browser/autofill/personal_data_manager.cc (right): http://codereview.chromium.org/9585020/diff/53001/chrome/browser/autofill/personal_data_manager.cc#newcode168 chrome/browser/autofill/personal_data_manager.cc:168: // the entries will be culled when ...
8 years, 9 months ago (2012-03-21 22:33:02 UTC) #15
Ilya Sherman
https://chromiumcodereview.appspot.com/9585020/diff/56003/chrome/browser/webdata/autofill_table.cc File chrome/browser/webdata/autofill_table.cc (right): https://chromiumcodereview.appspot.com/9585020/diff/56003/chrome/browser/webdata/autofill_table.cc#newcode428 chrome/browser/webdata/autofill_table.cc:428: bool was_removed = false; nit: You could save a ...
8 years, 9 months ago (2012-03-21 23:43:29 UTC) #16
GeorgeY
Addressed all comments. Sorry for the patchset name - an accident :) http://codereview.chromium.org/9585020/diff/53001/chrome/browser/autofill/personal_data_manager.cc File chrome/browser/autofill/personal_data_manager.cc ...
8 years, 9 months ago (2012-03-23 21:53:21 UTC) #17
Ilya Sherman
LGTM with nits. Thanks :) https://chromiumcodereview.appspot.com/9585020/diff/70001/chrome/browser/webdata/autocomplete_syncable_service.cc File chrome/browser/webdata/autocomplete_syncable_service.cc (right): https://chromiumcodereview.appspot.com/9585020/diff/70001/chrome/browser/webdata/autocomplete_syncable_service.cc#newcode139 chrome/browser/webdata/autocomplete_syncable_service.cc:139: // Delete only the ...
8 years, 9 months ago (2012-03-23 22:44:45 UTC) #18
Nicolas Zea
http://codereview.chromium.org/9585020/diff/70001/chrome/browser/webdata/autocomplete_syncable_service.cc File chrome/browser/webdata/autocomplete_syncable_service.cc (right): http://codereview.chromium.org/9585020/diff/70001/chrome/browser/webdata/autocomplete_syncable_service.cc#newcode43 chrome/browser/webdata/autocomplete_syncable_service.cc:43: for (size_t i = 0; i < timestamps_count; ++i) ...
8 years, 9 months ago (2012-03-26 18:23:54 UTC) #19
GeorgeY
http://codereview.chromium.org/9585020/diff/70001/chrome/browser/webdata/autocomplete_syncable_service.cc File chrome/browser/webdata/autocomplete_syncable_service.cc (right): http://codereview.chromium.org/9585020/diff/70001/chrome/browser/webdata/autocomplete_syncable_service.cc#newcode43 chrome/browser/webdata/autocomplete_syncable_service.cc:43: for (size_t i = 0; i < timestamps_count; ++i) ...
8 years, 9 months ago (2012-03-26 19:59:10 UTC) #20
Nicolas Zea
http://codereview.chromium.org/9585020/diff/79001/chrome/browser/webdata/autocomplete_syncable_service.cc File chrome/browser/webdata/autocomplete_syncable_service.cc (right): http://codereview.chromium.org/9585020/diff/79001/chrome/browser/webdata/autocomplete_syncable_service.cc#newcode62 chrome/browser/webdata/autocomplete_syncable_service.cc:62: if (timestamps.front() > time_begin) { I don't think this ...
8 years, 9 months ago (2012-03-26 20:58:22 UTC) #21
GeorgeY
http://codereview.chromium.org/9585020/diff/79001/chrome/browser/webdata/autocomplete_syncable_service.cc File chrome/browser/webdata/autocomplete_syncable_service.cc (right): http://codereview.chromium.org/9585020/diff/79001/chrome/browser/webdata/autocomplete_syncable_service.cc#newcode62 chrome/browser/webdata/autocomplete_syncable_service.cc:62: if (timestamps.front() > time_begin) { On 2012/03/26 20:58:22, nzea ...
8 years, 9 months ago (2012-03-26 21:19:47 UTC) #22
Nicolas Zea
LGTM, thanks!
8 years, 9 months ago (2012-03-26 21:32:03 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/georgey@chromium.org/9585020/87002
8 years, 9 months ago (2012-03-26 21:41:58 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/georgey@chromium.org/9585020/87002
8 years, 9 months ago (2012-03-26 22:23:59 UTC) #25
commit-bot: I haz the power
8 years, 9 months ago (2012-03-27 01:58:43 UTC) #26
Change committed as 129097

Powered by Google App Engine
This is Rietveld 408576698