Index: components/safe_browsing/password_protection/password_protection_service.h |
diff --git a/components/safe_browsing/password_protection/password_protection_service.h b/components/safe_browsing/password_protection/password_protection_service.h |
index e688efc4414070f76c81ef416e3b92f5be58dc62..20c32141b5525a0fa08f728bc4c8ab9aa071dd70 100644 |
--- a/components/safe_browsing/password_protection/password_protection_service.h |
+++ b/components/safe_browsing/password_protection/password_protection_service.h |
@@ -71,6 +71,9 @@ class PasswordProtectionService : public history::HistoryServiceObserver { |
LoginReputationClientResponse* verdict, |
const base::Time& receive_time); |
+ // Removes all the expired verdicts from cache. |
+ void CleanUpExpiredVerdicts(); |
+ |
// Creates an instance of PasswordProtectionRequest and call Start() on that |
// instance. This function also insert this request object in |requests_| for |
// record keeping. |
@@ -150,7 +153,9 @@ class PasswordProtectionService : public history::HistoryServiceObserver { |
FRIEND_TEST_ALL_PREFIXES(PasswordProtectionServiceTest, |
TestPathVariantsMatchCacheExpression); |
FRIEND_TEST_ALL_PREFIXES(PasswordProtectionServiceTest, |
- TestCleanUpCachedVerdicts); |
+ TestRemoveCachedVerdictOnURLsDeleted); |
+ FRIEND_TEST_ALL_PREFIXES(PasswordProtectionServiceTest, |
+ TestCleanUpExpiredVerdict); |
// Overridden from history::HistoryServiceObserver. |
void OnURLsDeleted(history::HistoryService* history_service, |