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

Issue 2714543006: Clean Obsolete HTTP Data from the Password Store (Closed)

Created:
3 years, 10 months ago by jdoerrie
Modified:
3 years, 8 months ago
CC:
chromium-reviews, gcasto+watchlist_chromium.org, vabr+watchlistpasswordmanager_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Clean Obsolete HTTP Data from the Password Store This change introduces a method to delete obsolete HTTP data from the password store. This method is executed 40 seconds after start up and will delete HTTP passwords, blacklist information and statistics for sites that have migrated to HTTPS and have HSTS enabled. BUG=687968 R=vasilii@chromium.org, vabr@chromium.org Review-Url: https://codereview.chromium.org/2714543006 Cr-Commit-Position: refs/heads/master@{#461733} Committed: https://chromium.googlesource.com/chromium/src/+/2c18c898b5e93b53737e884e54e66d2c7f633a33

Patch Set 1 #

Patch Set 2 : Actually do the deletion. #

Total comments: 16

Patch Set 3 : Next Round and Tests #

Total comments: 2

Patch Set 4 : Add Unittest File #

Total comments: 23

Patch Set 5 : Address Vasilii's comments and fix includes #

Total comments: 1

Patch Set 6 : Move Bulk of Code in //components #

Total comments: 6

Patch Set 7 : Fix BUILD.dn, exclude compilation on iOS #

Total comments: 22

Patch Set 8 : Addressed comments #

Total comments: 1

Patch Set 9 : scoped_refptr #

Patch Set 10 : Raw Cleaner #

Unified diffs Side-by-side diffs Delta from patch set Stats (+768 lines, -467 lines) Patch
M chrome/browser/password_manager/chrome_password_manager_client.cc View 1 2 3 4 5 4 chunks +3 lines, -23 lines 0 comments Download
M chrome/browser/password_manager/password_store_factory.cc View 1 2 3 4 5 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/passwords/manage_passwords_bubble_model_unittest.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M components/password_manager/DEPS View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M components/password_manager/core/browser/BUILD.gn View 1 2 3 4 5 6 7 5 chunks +15 lines, -3 lines 0 comments Download
A components/password_manager/core/browser/hsts_query.h View 1 2 3 4 5 1 chunk +28 lines, -0 lines 0 comments Download
A components/password_manager/core/browser/hsts_query.cc View 1 2 3 4 5 1 chunk +44 lines, -0 lines 0 comments Download
A components/password_manager/core/browser/hsts_query_unittest.cc View 1 2 3 4 5 1 chunk +64 lines, -0 lines 0 comments Download
A components/password_manager/core/browser/http_data_cleaner.h View 1 2 3 4 5 6 7 1 chunk +29 lines, -0 lines 0 comments Download
A components/password_manager/core/browser/http_data_cleaner.cc View 1 2 3 4 5 6 7 8 9 1 chunk +272 lines, -0 lines 0 comments Download
A components/password_manager/core/browser/http_data_cleaner_unittest.cc View 1 2 3 4 5 6 7 1 chunk +241 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/mock_password_store.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
D components/password_manager/core/browser/obsolete_http_cleaner.h View 1 chunk +0 lines, -50 lines 0 comments Download
D components/password_manager/core/browser/obsolete_http_cleaner.cc View 1 2 3 4 5 1 chunk +0 lines, -133 lines 0 comments Download
D components/password_manager/core/browser/obsolete_http_cleaner_unittest.cc View 1 2 1 chunk +0 lines, -257 lines 0 comments Download
M components/password_manager/core/browser/password_manager.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M components/password_manager/core/browser/password_manager_test_utils.h View 1 2 3 4 5 6 7 3 chunks +25 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_manager_test_utils.cc View 1 2 3 4 5 6 7 3 chunks +27 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_store_consumer.h View 1 chunk +2 lines, -0 lines 0 comments Download
M components/password_manager/core/common/password_manager_pref_names.h View 1 chunk +3 lines, -0 lines 0 comments Download
M components/password_manager/core/common/password_manager_pref_names.cc View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 70 (39 generated)
jdoerrie
Dear both, please review. This is still a work in progress and I'm mostly curious ...
3 years, 10 months ago (2017-02-24 16:46:08 UTC) #1
vasilii
The design is fine. You mix the two things in the CL - Clean up ...
3 years, 10 months ago (2017-02-24 17:27:04 UTC) #4
jdoerrie
I will split out the moving during migration part in another CL. https://codereview.chromium.org/2714543006/diff/20001/chrome/browser/password_manager/password_manager_util.cc File chrome/browser/password_manager/password_manager_util.cc ...
3 years, 9 months ago (2017-02-27 10:53:21 UTC) #7
vasilii
https://codereview.chromium.org/2714543006/diff/20001/chrome/browser/password_manager/password_manager_util.cc File chrome/browser/password_manager/password_manager_util.cc (right): https://codereview.chromium.org/2714543006/diff/20001/chrome/browser/password_manager/password_manager_util.cc#newcode178 chrome/browser/password_manager/password_manager_util.cc:178: void PostToDBThread(std::unique_ptr<ObsoleteHttpCleaner> cleaner) { On 2017/02/27 10:53:21, jdoerrie wrote: ...
3 years, 9 months ago (2017-02-27 12:28:26 UTC) #8
jdoerrie
Hi guys, please have another look. I apologize for all the added noise due to ...
3 years, 9 months ago (2017-03-23 15:42:12 UTC) #11
vasilii
Mostly good. https://codereview.chromium.org/2714543006/diff/40001/chrome/browser/password_manager/password_manager_util.cc File chrome/browser/password_manager/password_manager_util.cc (right): https://codereview.chromium.org/2714543006/diff/40001/chrome/browser/password_manager/password_manager_util.cc#newcode233 chrome/browser/password_manager/password_manager_util.cc:233: base::Bind(post_to_ui_thread, base::Passed(std::move(cleaner)))); On 2017/03/23 15:42:12, jdoerrie wrote: ...
3 years, 9 months ago (2017-03-23 17:39:26 UTC) #18
vabr (Chromium)
Hi Jan, Thanks for the CL. I have mostly some structural comments to the new ...
3 years, 9 months ago (2017-03-24 07:02:42 UTC) #19
jdoerrie
https://codereview.chromium.org/2714543006/diff/60001/chrome/browser/password_manager/password_manager_util.cc File chrome/browser/password_manager/password_manager_util.cc (right): https://codereview.chromium.org/2714543006/diff/60001/chrome/browser/password_manager/password_manager_util.cc#newcode206 chrome/browser/password_manager/password_manager_util.cc:206: ServiceAccessType::EXPLICIT_ACCESS) On 2017/03/23 17:39:26, vasilii wrote: > It's definitely ...
3 years, 9 months ago (2017-03-24 14:08:32 UTC) #20
vasilii
https://codereview.chromium.org/2714543006/diff/60001/chrome/browser/password_manager/password_manager_util.cc File chrome/browser/password_manager/password_manager_util.cc (right): https://codereview.chromium.org/2714543006/diff/60001/chrome/browser/password_manager/password_manager_util.cc#newcode116 chrome/browser/password_manager/password_manager_util.cc:116: Profile* profile_; On 2017/03/24 07:02:41, vabr (Chromium) wrote: > ...
3 years, 9 months ago (2017-03-24 15:14:30 UTC) #21
vabr (Chromium)
https://codereview.chromium.org/2714543006/diff/60001/chrome/browser/password_manager/password_manager_util.cc File chrome/browser/password_manager/password_manager_util.cc (right): https://codereview.chromium.org/2714543006/diff/60001/chrome/browser/password_manager/password_manager_util.cc#newcode116 chrome/browser/password_manager/password_manager_util.cc:116: Profile* profile_; On 2017/03/24 15:14:30, vasilii wrote: > On ...
3 years, 9 months ago (2017-03-27 05:53:59 UTC) #22
jdoerrie
https://codereview.chromium.org/2714543006/diff/100001/components/password_manager/core/browser/BUILD.gn File components/password_manager/core/browser/BUILD.gn (right): https://codereview.chromium.org/2714543006/diff/100001/components/password_manager/core/browser/BUILD.gn#newcode58 components/password_manager/core/browser/BUILD.gn:58: "http_data_cleaner.h", I wasn't quite sure how to do the ...
3 years, 8 months ago (2017-03-28 13:18:41 UTC) #27
vabr (Chromium)
https://codereview.chromium.org/2714543006/diff/100001/components/password_manager/core/browser/BUILD.gn File components/password_manager/core/browser/BUILD.gn (right): https://codereview.chromium.org/2714543006/diff/100001/components/password_manager/core/browser/BUILD.gn#newcode58 components/password_manager/core/browser/BUILD.gn:58: "http_data_cleaner.h", On 2017/03/28 13:18:41, jdoerrie wrote: > I wasn't ...
3 years, 8 months ago (2017-03-28 13:39:12 UTC) #28
jdoerrie
Dear both, please have another look :)
3 years, 8 months ago (2017-03-28 16:29:36 UTC) #32
vabr (Chromium)
LGTM, thanks! Vaclav https://codereview.chromium.org/2714543006/diff/120001/components/password_manager/core/browser/http_data_cleaner.cc File components/password_manager/core/browser/http_data_cleaner.cc (right): https://codereview.chromium.org/2714543006/diff/120001/components/password_manager/core/browser/http_data_cleaner.cc#newcode31 components/password_manager/core/browser/http_data_cleaner.cc:31: constexpr int kDefaultDelay = 40; nit: ...
3 years, 8 months ago (2017-03-28 16:48:03 UTC) #33
vasilii
https://codereview.chromium.org/2714543006/diff/120001/components/password_manager/core/browser/BUILD.gn File components/password_manager/core/browser/BUILD.gn (right): https://codereview.chromium.org/2714543006/diff/120001/components/password_manager/core/browser/BUILD.gn#newcode173 components/password_manager/core/browser/BUILD.gn:173: sources -= [ What about if (!is_ios) sources += ...
3 years, 8 months ago (2017-03-28 17:27:45 UTC) #36
jdoerrie
Next Round :) https://codereview.chromium.org/2714543006/diff/120001/components/password_manager/core/browser/BUILD.gn File components/password_manager/core/browser/BUILD.gn (right): https://codereview.chromium.org/2714543006/diff/120001/components/password_manager/core/browser/BUILD.gn#newcode173 components/password_manager/core/browser/BUILD.gn:173: sources -= [ On 2017/03/28 17:27:44, ...
3 years, 8 months ago (2017-03-29 11:27:57 UTC) #38
vasilii
lgtm https://codereview.chromium.org/2714543006/diff/140001/components/password_manager/core/browser/http_data_cleaner.cc File components/password_manager/core/browser/http_data_cleaner.cc (right): https://codereview.chromium.org/2714543006/diff/140001/components/password_manager/core/browser/http_data_cleaner.cc#newcode227 components/password_manager/core/browser/http_data_cleaner.cc:227: PasswordStore* store, scoped_refptr here
3 years, 8 months ago (2017-03-29 12:09:03 UTC) #40
vabr (Chromium)
lgtm https://codereview.chromium.org/2714543006/diff/120001/components/password_manager/core/browser/password_manager_test_utils.h File components/password_manager/core/browser/password_manager_test_utils.h (right): https://codereview.chromium.org/2714543006/diff/120001/components/password_manager/core/browser/password_manager_test_utils.h#newcode64 components/password_manager/core/browser/password_manager_test_utils.h:64: // Convenience method that wraps the passed in ...
3 years, 8 months ago (2017-03-29 13:06:19 UTC) #43
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/2714543006/180001
3 years, 8 months ago (2017-03-30 10:49:03 UTC) #50
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/398589)
3 years, 8 months ago (2017-03-30 10:56:09 UTC) #52
jdoerrie
palmer@: Please review components/password_manager/DEPS
3 years, 8 months ago (2017-03-30 11:24:45 UTC) #54
jdoerrie
On 2017/03/30 11:24:45, jdoerrie wrote: > palmer@: Please review components/password_manager/DEPS palmer@: A friendly ping to ...
3 years, 8 months ago (2017-04-03 09:40:51 UTC) #55
palmer
lgtm
3 years, 8 months ago (2017-04-03 23:26:03 UTC) #56
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/2714543006/180001
3 years, 8 months ago (2017-04-04 05:20:10 UTC) #58
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/401655)
3 years, 8 months ago (2017-04-04 05:29:22 UTC) #60
vabr (Chromium)
On 2017/04/04 05:29:22, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 8 months ago (2017-04-04 07:09:18 UTC) #61
vabr (Chromium)
Also, I filed https://crbug.com/708090 for the other (non-blocking) presubmit message.
3 years, 8 months ago (2017-04-04 07:22:07 UTC) #62
jdoerrie
On 2017/04/04 07:09:18, vabr (Chromium) wrote: > On 2017/04/04 05:29:22, commit-bot: I haz the power ...
3 years, 8 months ago (2017-04-04 08:02:44 UTC) #64
agl
LGTM. If palmer's happy then I'm happy.
3 years, 8 months ago (2017-04-04 14:53:27 UTC) #65
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/2714543006/180001
3 years, 8 months ago (2017-04-04 14:56:10 UTC) #67
commit-bot: I haz the power
3 years, 8 months ago (2017-04-04 15:52:19 UTC) #70
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/2c18c898b5e93b53737e884e54e6...

Powered by Google App Engine
This is Rietveld 408576698