OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <stdbool.h> |
| 6 #include <stddef.h> |
| 7 #include <map> |
| 8 #include <string> |
| 9 #include <utility> |
6 | 10 |
7 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/metrics/field_trial.h" |
8 #include "base/rand_util.h" | 13 #include "base/rand_util.h" |
9 #include "base/stringprintf.h" | 14 #include "base/stringprintf.h" |
| 15 #include "base/synchronization/lock.h" |
| 16 #include "base/time.h" |
10 #include "base/utf_string_conversions.h" | 17 #include "base/utf_string_conversions.h" |
11 | 18 |
12 namespace base { | 19 namespace base { |
13 | 20 |
14 // static | 21 // static |
15 const int FieldTrial::kNotFinalized = -1; | 22 const int FieldTrial::kNotFinalized = -1; |
16 | 23 |
17 // static | 24 // static |
18 const int FieldTrial::kDefaultGroupNumber = 0; | 25 const int FieldTrial::kDefaultGroupNumber = 0; |
19 | 26 |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 } | 270 } |
264 | 271 |
265 FieldTrial* FieldTrialList::PreLockedFind(const std::string& name) { | 272 FieldTrial* FieldTrialList::PreLockedFind(const std::string& name) { |
266 RegistrationList::iterator it = registered_.find(name); | 273 RegistrationList::iterator it = registered_.find(name); |
267 if (registered_.end() == it) | 274 if (registered_.end() == it) |
268 return NULL; | 275 return NULL; |
269 return it->second; | 276 return it->second; |
270 } | 277 } |
271 | 278 |
272 } // namespace base | 279 } // namespace base |
OLD | NEW |