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

Unified Diff: components/precache/content/precache_manager.cc

Issue 2123813002: Report Precache.TimeSinceLastPrecache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Twifkak's comments Created 4 years, 5 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/precache/content/precache_manager.cc
diff --git a/components/precache/content/precache_manager.cc b/components/precache/content/precache_manager.cc
index 9a81fbb032b3e47ee7de0748794ec3c30ea0c096..85be73e3538c939e3e7979a2f06625c0ecdeef68 100644
--- a/components/precache/content/precache_manager.cc
+++ b/components/precache/content/precache_manager.cc
@@ -123,6 +123,11 @@ void PrecacheManager::StartPrecaching(
precache_completion_callback_ = precache_completion_callback;
is_precaching_ = true;
+ BrowserThread::PostTask(
+ BrowserThread::DB, FROM_HERE,
+ base::Bind(&PrecacheDatabase::SetLastPrecacheTimestamp,
+ base::Unretained(precache_database_.get()),
+ base::Time::Now()));
BrowserThread::PostTaskAndReplyWithResult(
BrowserThread::DB,
FROM_HERE,

Powered by Google App Engine
This is Rietveld 408576698