| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 | 5 |
| 6 #include "base/field_trial.h" | 6 #include "base/field_trial.h" |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/rand_util.h" | 8 #include "base/rand_util.h" |
| 9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
| 10 | 10 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 } | 97 } |
| 98 | 98 |
| 99 // static | 99 // static |
| 100 FieldTrial* FieldTrialList::Find(const std::string& name) { | 100 FieldTrial* FieldTrialList::Find(const std::string& name) { |
| 101 DCHECK(global_->CalledOnValidThread()); | 101 DCHECK(global_->CalledOnValidThread()); |
| 102 RegistrationList::iterator it = global_->registered_.find(name); | 102 RegistrationList::iterator it = global_->registered_.find(name); |
| 103 if (global_->registered_.end() == it) | 103 if (global_->registered_.end() == it) |
| 104 return NULL; | 104 return NULL; |
| 105 return it->second; | 105 return it->second; |
| 106 } | 106 } |
| 107 | |
| OLD | NEW |