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

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

Issue 16667013: Use a direct include of strings headers in base/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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/memory/linked_ptr_unittest.cc ('k') | base/metrics/field_trial_unittest.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) 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
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
OLDNEW
« no previous file with comments | « base/memory/linked_ptr_unittest.cc ('k') | base/metrics/field_trial_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698