| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/metrics/field_trial.h" | 5 #include "base/metrics/field_trial.h" |
| 6 | 6 |
| 7 #include "base/build_time.h" | 7 #include "base/build_time.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/rand_util.h" | 9 #include "base/rand_util.h" |
| 10 #include "base/sha1.h" | 10 #include "base/sha1.h" |
| 11 #include "base/string_util.h" | 11 #include "base/strings/string_util.h" |
| 12 #include "base/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
| 13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 14 #include "base/sys_byteorder.h" | 14 #include "base/sys_byteorder.h" |
| 15 | 15 |
| 16 namespace base { | 16 namespace base { |
| 17 | 17 |
| 18 namespace { | 18 namespace { |
| 19 | 19 |
| 20 // Created a time value based on |year|, |month| and |day_of_month| parameters. | 20 // Created a time value based on |year|, |month| and |day_of_month| parameters. |
| 21 Time CreateTimeFromParams(int year, int month, int day_of_month) { | 21 Time CreateTimeFromParams(int year, int month, int day_of_month) { |
| 22 DCHECK_GT(year, 1970); | 22 DCHECK_GT(year, 1970); |
| (...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 used_without_global_ = true; | 489 used_without_global_ = true; |
| 490 return; | 490 return; |
| 491 } | 491 } |
| 492 AutoLock auto_lock(global_->lock_); | 492 AutoLock auto_lock(global_->lock_); |
| 493 DCHECK(!global_->PreLockedFind(trial->trial_name())); | 493 DCHECK(!global_->PreLockedFind(trial->trial_name())); |
| 494 trial->AddRef(); | 494 trial->AddRef(); |
| 495 global_->registered_[trial->trial_name()] = trial; | 495 global_->registered_[trial->trial_name()] = trial; |
| 496 } | 496 } |
| 497 | 497 |
| 498 } // namespace base | 498 } // namespace base |
| OLD | NEW |