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

Issue 2320763002: Support origin-based deletion for password store statistics (Closed)

Created:
4 years, 3 months ago by msramek
Modified:
4 years, 3 months ago
Reviewers:
vabr (Chromium)
CC:
chromium-reviews, gcasto+watchlist_chromium.org, markusheintz_, msramek+watch_chromium.org, vabr+watchlistpasswordmanager_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Support origin-based deletion for password store statistics We iterate over the rows of the SQL DB to find entries matching the origin filter. Then, we issue a cached DELETE statement for each of the entries. It would also be possible to issue one "DELETE .. IN (?,?,?)" statement for all matched origins, however, this requires us to generate the statement runtime to add the correct number of "?". This is more complex and probably doesn't bring a performance gain in practice. BUG=589586 Committed: https://crrev.com/9acfdb3cd901f3aec451ba3aa5305a2cc2266739 Cr-Commit-Position: refs/heads/master@{#417262}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressed comments, fix the test. #

Patch Set 3 : Mac-specific code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+186 lines, -57 lines) Patch
M chrome/browser/browsing_data/browsing_data_remover.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover_unittest.cc View 1 2 chunks +23 lines, -1 line 0 comments Download
M chrome/browser/password_manager/password_store_mac.h View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/password_manager/password_store_mac.cc View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/password_manager/password_store_proxy_mac.h View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/password_manager/password_store_proxy_mac.cc View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M components/password_manager/core/browser/mock_password_store.h View 1 chunk +4 lines, -2 lines 0 comments Download
M components/password_manager/core/browser/password_store.h View 1 3 chunks +18 lines, -11 lines 0 comments Download
M components/password_manager/core/browser/password_store.cc View 1 2 chunks +7 lines, -5 lines 0 comments Download
M components/password_manager/core/browser/password_store_default.h View 1 chunk +4 lines, -2 lines 0 comments Download
M components/password_manager/core/browser/password_store_default.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M components/password_manager/core/browser/statistics_table.h View 2 chunks +8 lines, -3 lines 0 comments Download
M components/password_manager/core/browser/statistics_table.cc View 1 2 chunks +49 lines, -9 lines 0 comments Download
M components/password_manager/core/browser/statistics_table_unittest.cc View 3 chunks +45 lines, -7 lines 0 comments Download
M components/password_manager/core/browser/test_password_store.h View 1 chunk +4 lines, -2 lines 0 comments Download
M components/password_manager/core/browser/test_password_store.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 27 (18 generated)
msramek
Hi Václav, Please have a look! This is the CL that I mentioned earlier today. ...
4 years, 3 months ago (2016-09-07 16:54:13 UTC) #7
msramek
Hi Václav, Please have a look! This is the CL that I mentioned earlier today. ...
4 years, 3 months ago (2016-09-07 16:54:14 UTC) #8
vabr (Chromium)
LGTM with a few comments (and the assumption that you fix the non-compiling unittest :)). ...
4 years, 3 months ago (2016-09-08 09:04:36 UTC) #11
msramek
I addressed your comments, fixed the test, and added Mac-specific code which I missed previously. ...
4 years, 3 months ago (2016-09-08 10:45:29 UTC) #18
vabr (Chromium)
lgtm
4 years, 3 months ago (2016-09-08 12:08:41 UTC) #21
msramek
Thanks!
4 years, 3 months ago (2016-09-08 12:09:56 UTC) #22
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/2320763002/60001
4 years, 3 months ago (2016-09-08 12:10:16 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 3 months ago (2016-09-08 12:14:10 UTC) #25
commit-bot: I haz the power
4 years, 3 months ago (2016-09-08 12:16:17 UTC) #27
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/9acfdb3cd901f3aec451ba3aa5305a2cc2266739
Cr-Commit-Position: refs/heads/master@{#417262}

Powered by Google App Engine
This is Rietveld 408576698