Chromium Code Reviews| 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_ |