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

Unified Diff: chrome/browser/safe_browsing/chrome_password_protection_service.cc

Issue 2870193002: Clean up expired verdicts at shutdown (Closed)
Patch Set: nit Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/safe_browsing/chrome_password_protection_service.cc
diff --git a/chrome/browser/safe_browsing/chrome_password_protection_service.cc b/chrome/browser/safe_browsing/chrome_password_protection_service.cc
index 9c4efee47e7016d45575efe9ec65b1143ebc84ef..053284d9f30eaa5fa8aede94686bb119db9ef067 100644
--- a/chrome/browser/safe_browsing/chrome_password_protection_service.cc
+++ b/chrome/browser/safe_browsing/chrome_password_protection_service.cc
@@ -44,6 +44,7 @@ ChromePasswordProtectionService::ChromePasswordProtectionService(
ChromePasswordProtectionService::~ChromePasswordProtectionService() {
if (content_settings()) {
+ CleanUpExpiredVerdicts();
UMA_HISTOGRAM_COUNTS_1000(
"PasswordProtection.NumberOfCachedVerdictBeforeShutdown",
GetStoredVerdictCount());

Powered by Google App Engine
This is Rietveld 408576698