From f2bc0cb52453bbca0c9b998994de8674f8a1e874 Mon Sep 17 00:00:00 2001 From: "jar@chromium.org" Date: Fri, 25 Jun 2010 15:55:15 +0000 Subject: Do some minor cleanup in histogram.* I was trying to debug some code, and noticed some excess complexity. There are no significant semantic changes. DCHECK on a foo.get() is a waste given we're about to deref the pointer. Execution cost should be be minially less, and we get rid of several lines of code. BUG=46263 r=mbelshe Review URL: http://codereview.chromium.org/2805033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50847 0039d316-1c4b-4281-b951-d872f2087c98 --- base/histogram.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'base/histogram.h') diff --git a/base/histogram.h b/base/histogram.h index a11e293..64ae9cb 100644 --- a/base/histogram.h +++ b/base/histogram.h @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Copyright (c) 2006-2010 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. @@ -603,7 +603,8 @@ class StatisticsRecorder { static void GetHistograms(Histograms* output); // Find a histogram by name. It matches the exact name. This method is thread - // safe. + // safe. If a matching histogram is not found, then the |histogram| is + // not changed. static bool FindHistogram(const std::string& query, scoped_refptr* histogram); -- cgit v1.1