Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1998)

Unified Diff: base/field_trial.cc

Issue 18535: Decrements FieldTrialList::constructor_count_ in the destructor. I'm... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/field_trial.h ('k') | base/field_trial_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/field_trial.cc
===================================================================
--- base/field_trial.cc (revision 8409)
+++ base/field_trial.cc (working copy)
@@ -15,13 +15,9 @@
// static
FieldTrialList* FieldTrialList::global_ = NULL;
-// static
-int FieldTrialList::constructor_count_ = 0;
-
FieldTrialList::FieldTrialList()
: application_start_time_(Time::Now()) {
- DCHECK(!constructor_count_);
- ++constructor_count_;
+ DCHECK(!global_);
global_ = this;
}
« no previous file with comments | « base/field_trial.h ('k') | base/field_trial_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698