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

Side by Side Diff: base/metrics/field_trial.cc

Issue 6410105: run iwyu on base! Base URL: svn://svn.chromium.org/chrome/trunk/src/base
Patch Set: Created 9 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/message_pump_libevent.cc ('k') | base/metrics/histogram.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « base/message_pump_libevent.cc ('k') | base/metrics/histogram.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698