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

Unified Diff: chrome/browser/precache/precache_util.h

Issue 2562573003: Create a synthetic field trial for precache (Closed)
Patch Set: Created 4 years 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: chrome/browser/precache/precache_util.h
diff --git a/chrome/browser/precache/precache_util.h b/chrome/browser/precache/precache_util.h
index 80a1fc8f0537df05ce81ed0958ada1d7e83a0bac..6b1500166aee699c2a5785826ac95fd16687c8d6 100644
--- a/chrome/browser/precache/precache_util.h
+++ b/chrome/browser/precache/precache_util.h
@@ -5,6 +5,8 @@
#ifndef CHROME_BROWSER_PRECACHE_PRECACHE_UTIL_H_
#define CHROME_BROWSER_PRECACHE_PRECACHE_UTIL_H_
+#include "base/time/time.h"
+
namespace net {
class URLRequest;
}
@@ -14,6 +16,12 @@ namespace precache {
void UpdatePrecacheMetricsAndState(const net::URLRequest* request,
void* profile_id);
+// Registers the precache synthetic field trial for users whom the precache task
+// started in the last |kDaysForPrecacheCandidates| days. The group name of the
twifkak 2016/12/08 21:49:22 s/name of/name of/
+// synthetic field trial will be the regular precache group.
+// |last_precache_time| is the last time precache task was run.
+void RegisterPrecacheSyntheticFieldTrial(const base::Time& last_precache_time);
+
} // namespace precache
#endif // CHROME_BROWSER_PRECACHE_PRECACHE_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698