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

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

Issue 2596093002: 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..32e221204310b1480bce5fcae3acbdb621f79354 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
+// 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);
jamartin 2016/12/21 23:54:33 // All time classes are copyable, assignable, and
twifkak 2017/01/05 23:53:14 Done.
+
} // namespace precache
#endif // CHROME_BROWSER_PRECACHE_PRECACHE_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698