| Index: components/password_manager/core/browser/facet_manager.cc
|
| diff --git a/components/password_manager/core/browser/facet_manager.cc b/components/password_manager/core/browser/facet_manager.cc
|
| index ea84f50ea2dff47a0ba20b1461bfa3be4f37fbb6..a0e9e8667371d41689ca49145dd1e0df4b6efc9c 100644
|
| --- a/components/password_manager/core/browser/facet_manager.cc
|
| +++ b/components/password_manager/core/browser/facet_manager.cc
|
| @@ -187,6 +187,11 @@ bool FacetManager::CanBeDiscarded() const {
|
| GetMaximumKeepFreshUntilThreshold() <= clock_->Now();
|
| }
|
|
|
| +bool FacetManager::CanCachedDataBeDiscarded() const {
|
| + return GetMaximumKeepFreshUntilThreshold() <= clock_->Now() ||
|
| + !IsCachedDataFresh();
|
| +}
|
| +
|
| bool FacetManager::DoesRequireFetch() const {
|
| return (!pending_requests_.empty() && !IsCachedDataFresh()) ||
|
| GetNextRequiredFetchTimeDueToPrefetch() <= clock_->Now();
|
|
|