diff options
author | kushi.p@gmail.com <kushi.p@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-22 13:13:07 +0000 |
---|---|---|
committer | kushi.p@gmail.com <kushi.p@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-22 13:13:07 +0000 |
commit | d7a93adb9f63cb2e71cb017d51aa9af4d1f67b09 (patch) | |
tree | 46031f33b84c38f7f231d1af10d4af265a98ad7c /base/metrics | |
parent | 1d5c38a395f28f227194fe85611a97de4e6f420e (diff) | |
download | chromium_src-d7a93adb9f63cb2e71cb017d51aa9af4d1f67b09.zip chromium_src-d7a93adb9f63cb2e71cb017d51aa9af4d1f67b09.tar.gz chromium_src-d7a93adb9f63cb2e71cb017d51aa9af4d1f67b09.tar.bz2 |
Update DCHECK() usage to utilize the more expressive debugging functions.
BUG=58409
Review URL: http://codereview.chromium.org/6891008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82639 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/metrics')
-rw-r--r-- | base/metrics/field_trial.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/base/metrics/field_trial.cc b/base/metrics/field_trial.cc index c1416db..ad2e5a0 100644 --- a/base/metrics/field_trial.cc +++ b/base/metrics/field_trial.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -67,7 +67,7 @@ FieldTrial::FieldTrial(const std::string& name, int FieldTrial::AppendGroup(const std::string& name, Probability group_probability) { - DCHECK(group_probability <= divisor_); + DCHECK_LE(group_probability, divisor_); DCHECK_GE(group_probability, 0); if (enable_benchmarking_ || disable_field_trial_) @@ -75,7 +75,7 @@ int FieldTrial::AppendGroup(const std::string& name, accumulated_group_probability_ += group_probability; - DCHECK(accumulated_group_probability_ <= divisor_); + DCHECK_LE(accumulated_group_probability_, divisor_); if (group_ == kNotFinalized && accumulated_group_probability_ > random_) { // This is the group that crossed the random line, so we do the assignment. group_ = next_group_number_; |