summaryrefslogtreecommitdiffstats
path: root/chrome/common/chrome_constants.h
diff options
context:
space:
mode:
authorchrisha@chromium.org <chrisha@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-25 21:56:10 +0000
committerchrisha@chromium.org <chrisha@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-25 21:56:10 +0000
commitc359a751806b5e367e99c1ff554b07e6fc3ceb42 (patch)
treeb2bdd3e14fff5ab4427fbbf6adaba04cee65768b /chrome/common/chrome_constants.h
parent7dcb8b24cc9931f3b3e043f1cfaed01f704a4cec (diff)
downloadchromium_src-c359a751806b5e367e99c1ff554b07e6fc3ceb42.zip
chromium_src-c359a751806b5e367e99c1ff554b07e6fc3ceb42.tar.gz
chromium_src-c359a751806b5e367e99c1ff554b07e6fc3ceb42.tar.bz2
Make a channel and time limited persistent PreRead experiment
Our previous PreRead experiment involved flipping a coin on every launch, but we wish to persist the coin-toss between launches. Additionally, this version of the field trial includes an expiry date and limits it to the canary and dev channels. We are unable to use the FieldTrial mechanism due to PreRead occuring prior to chrome.dll being loaded. As such, we use the registry for persisting the coin-toss and environment variables for communicating between chrome.exe and chrome.dll. Review URL: http://codereview.chromium.org/7712014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98319 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/chrome_constants.h')
-rw-r--r--chrome/common/chrome_constants.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/common/chrome_constants.h b/chrome/common/chrome_constants.h
index ca0b456..3e3acc4 100644
--- a/chrome/common/chrome_constants.h
+++ b/chrome/common/chrome_constants.h
@@ -116,6 +116,11 @@ extern const int kLowestRendererOomScore;
extern const int kHighestRendererOomScore;
#endif
+#if defined(OS_WIN)
+// This is used by the PreRead experiment.
+extern const char kPreReadEnvironmentVariable[];
+#endif
+
} // namespace chrome
#endif // CHROME_COMMON_CHROME_CONSTANTS_H_