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

Unified Diff: components/browsing_data/content/conditional_cache_deletion_helper.cc

Issue 2556363003: Refactor cache counting into a separate helper class (Closed)
Patch Set: Remove code depending on GetEntrySize() Created 3 years, 11 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: components/browsing_data/content/conditional_cache_deletion_helper.cc
diff --git a/components/browsing_data/content/conditional_cache_deletion_helper.cc b/components/browsing_data/content/conditional_cache_deletion_helper.cc
index 416ad0ce8e71b529f3dad564e57e598e5486eb2e..f0f500e9633b0f61dd0a3aedbe028386e27e6af8 100644
--- a/components/browsing_data/content/conditional_cache_deletion_helper.cc
+++ b/components/browsing_data/content/conditional_cache_deletion_helper.cc
@@ -17,8 +17,8 @@ bool EntryPredicateFromURLsAndTime(
const base::Time& begin_time,
const base::Time& end_time,
const disk_cache::Entry* entry) {
- return (entry->GetLastModified() >= begin_time &&
- entry->GetLastModified() < end_time &&
+ return (entry->GetLastUsed() >= begin_time &&
+ entry->GetLastUsed() < end_time &&
url_predicate.Run(GURL(entry->GetKey())));
}
@@ -76,7 +76,7 @@ void ConditionalCacheDeletionHelper::IterateOverEntries(int error) {
}
if (error == net::ERR_FAILED) {
- // The iteration finished successfuly or we can no longer iterate
+ // The iteration finished successfully or we can no longer iterate
// (e.g. the cache was destroyed). We cannot distinguish between the two,
// but we know that there is nothing more that we can do, so we return OK.
base::ThreadTaskRunnerHandle::Get()->PostTask(

Powered by Google App Engine
This is Rietveld 408576698