From d17ea114e5ef69ad5d5d7413280a13e6428098aa Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Tue, 15 May 2018 10:20:33 +0200 Subject: BASELINE: Update Chromium to 67.0.3396.47 Change-Id: Idcb1341782e417561a2473eeecc82642dafda5b7 Reviewed-by: Michal Klocek --- chromium/net/disk_cache/simple/simple_entry_impl.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'chromium/net/disk_cache/simple/simple_entry_impl.cc') diff --git a/chromium/net/disk_cache/simple/simple_entry_impl.cc b/chromium/net/disk_cache/simple/simple_entry_impl.cc index 147350d3714..594e50f6180 100644 --- a/chromium/net/disk_cache/simple/simple_entry_impl.cc +++ b/chromium/net/disk_cache/simple/simple_entry_impl.cc @@ -599,6 +599,13 @@ int SimpleEntryImpl::ReadyForSparseIO(const CompletionCallback& callback) { return net::OK; } +void SimpleEntryImpl::SetLastUsedTimeForTest(base::Time time) { + // Note that we do not update |last_used_| here as it gets overwritten + // by UpdateDataFromEntryStat with the current time. It would be more involved + // to make that value stick and is not needed by the current tests. + backend_->index()->SetLastUsedTimeForTest(entry_hash_, time); +} + size_t SimpleEntryImpl::EstimateMemoryUsage() const { // TODO(xunjieli): crbug.com/669108. It'd be nice to have the rest of |entry| // measured, but the ownership of SimpleSynchronousEntry isn't straightforward -- cgit v1.2.1