Added a function to BrowserMainParts that sets up field trials. It is called after about_flags has converted the flags to command-line switches. This fixes the case where a field trial would opt a user out of a feature even when they'd explicitly enabled it in their flags.
Contributed by: [email protected]
BUG=none
TEST=Enable page-prerender through about:flags and restart. You should skip the random part of the Field Test.
Review URL: http://codereview.chromium.org/6354023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72689 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/browser_main.h b/chrome/browser/browser_main.h
index 7fd7142..a8f5442 100644
--- a/chrome/browser/browser_main.h
+++ b/chrome/browser/browser_main.h
@@ -80,6 +80,8 @@
void EarlyInitialization();
void MainMessageLoopStart();
+ void SetupFieldTrials();
+
protected:
explicit BrowserMainParts(const MainFunctionParams& parameters);