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-26 20:46:55 +0000
committerchrisha@chromium.org <chrisha@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-26 20:46:55 +0000
commit28f576f39f3d313e0cf6828346b2bf98fef7f47b (patch)
tree87f2b11da6518dbb3ee5a60fdab6d878830a49aa /chrome/common/chrome_constants.h
parent5e8c3b3589d1e3830185a7ffe9b70fd0cd885ccf (diff)
downloadchromium_src-28f576f39f3d313e0cf6828346b2bf98fef7f47b.zip
chromium_src-28f576f39f3d313e0cf6828346b2bf98fef7f47b.tar.gz
chromium_src-28f576f39f3d313e0cf6828346b2bf98fef7f47b.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. Initially Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98319 Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=98388 Review URL: http://codereview.chromium.org/7712014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98482 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_