summaryrefslogtreecommitdiffstats
path: root/base/field_trial.h
diff options
context:
space:
mode:
authorsky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-23 16:05:58 +0000
committersky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-23 16:05:58 +0000
commit86dc25f56d7b1b379faedfc215f22f0fba3d5db6 (patch)
tree7ea34ddda03319963cb4aecd96d9473d36ee5262 /base/field_trial.h
parent2eb517b30fa34102fa6f00bafc6c8d1948eace91 (diff)
downloadchromium_src-86dc25f56d7b1b379faedfc215f22f0fba3d5db6.zip
chromium_src-86dc25f56d7b1b379faedfc215f22f0fba3d5db6.tar.gz
chromium_src-86dc25f56d7b1b379faedfc215f22f0fba3d5db6.tar.bz2
Decrements FieldTrialList::constructor_count_ in the destructor. I'm
going to run ui tests in process and call BrowserMain multiple times. That means FieldTrialList's constructor is run multiple times. Without this decrement, the constructor isn't happy. BUG=none TEST=none Review URL: http://codereview.chromium.org/18535 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8554 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/field_trial.h')
-rw-r--r--base/field_trial.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/base/field_trial.h b/base/field_trial.h
index 99e213c..f392f88 100644
--- a/base/field_trial.h
+++ b/base/field_trial.h
@@ -80,11 +80,7 @@ class FieldTrialList : NonThreadSafe {
private:
typedef std::map<std::wstring, FieldTrial*> RegistrationList;
- friend class FieldTrialTest;
- static void ResetConstructorCountForTestingOnly() { constructor_count_ = 0; }
-
static FieldTrialList* global_; // The singleton of this class.
- static int constructor_count_; // Prevent having more than one.
base::Time application_start_time_;
RegistrationList registered_;