summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_trial.h
diff options
context:
space:
mode:
authorjar@google.com <jar@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-19 17:45:21 +0000
committerjar@google.com <jar@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-19 17:45:21 +0000
commitac262c9fd9775f9d85c42eaf42fccb896ba790ba (patch)
tree666a943e0537d6fdad0bf393ff0dd6939ee13b53 /chrome/browser/browser_trial.h
parentaef3555aa83038b26b50cfab04d685e0f6dfc04f (diff)
downloadchromium_src-ac262c9fd9775f9d85c42eaf42fccb896ba790ba.zip
chromium_src-ac262c9fd9775f9d85c42eaf42fccb896ba790ba.tar.gz
chromium_src-ac262c9fd9775f9d85c42eaf42fccb896ba790ba.tar.bz2
Construct a field trial to see if HIGH or MEDIUM memory model "works better"
Includes definition of a FieldTrial class to support this. I have thoughts in my head about how this will eventually extend to be controllable via UMA (as well as being able to run tests defined at compile time, as was done in this example. r=mbelshe, mmentovai Review URL: http://codereview.chromium.org/7638 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3604 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_trial.h')
-rw-r--r--chrome/browser/browser_trial.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/chrome/browser/browser_trial.h b/chrome/browser/browser_trial.h
new file mode 100644
index 0000000..1752eba
--- /dev/null
+++ b/chrome/browser/browser_trial.h
@@ -0,0 +1,22 @@
+// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// BrowserTrial contains methods specific to field trials (using FieldTrial
+// functionality) for browser tests.
+
+#ifndef CHROME_BROWSER_BROWSER_TRIAL_H_
+#define CHROME_BROWSER_BROWSER_TRIAL_H_
+
+#include "base/field_trial.h"
+
+// Currently we use this as a name space, to hold static shared constants which
+// define current and past trials.
+class BrowserTrial {
+ public:
+ static const wchar_t* kMemoryModelFieldTrial;
+ private:
+ DISALLOW_COPY_AND_ASSIGN(BrowserTrial);
+};
+
+#endif // CHROME_BROWSER_BROWSER_TRIAL_H_