summaryrefslogtreecommitdiffstats
path: root/base/metrics/statistics_recorder.h
diff options
context:
space:
mode:
authorkaiwang@chromium.org <kaiwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-18 18:06:30 +0000
committerkaiwang@chromium.org <kaiwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-18 18:06:30 +0000
commit993ae74a7291f89a21ddf7d5436e3e89091cae0d (patch)
treed4f686676b943b046151431a09dd01aa761abda4 /base/metrics/statistics_recorder.h
parentc1f5b4143d01bcfa8a826338eebfe3503a28128e (diff)
downloadchromium_src-993ae74a7291f89a21ddf7d5436e3e89091cae0d.zip
chromium_src-993ae74a7291f89a21ddf7d5436e3e89091cae0d.tar.gz
chromium_src-993ae74a7291f89a21ddf7d5436e3e89091cae0d.tar.bz2
Change the FindHistogram interface of StatisticsRecorder
Review URL: https://chromiumcodereview.appspot.com/10802002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147269 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/metrics/statistics_recorder.h')
-rw-r--r--base/metrics/statistics_recorder.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/base/metrics/statistics_recorder.h b/base/metrics/statistics_recorder.h
index b947c53..ee03f24 100644
--- a/base/metrics/statistics_recorder.h
+++ b/base/metrics/statistics_recorder.h
@@ -63,9 +63,8 @@ class BASE_EXPORT StatisticsRecorder {
static void GetHistograms(Histograms* output);
// Find a histogram by name. It matches the exact name. This method is thread
- // safe. If a matching histogram is not found, then the |histogram| is
- // not changed.
- static bool FindHistogram(const std::string& query, Histogram** histogram);
+ // safe. It returns NULL if a matching histogram is not found.
+ static Histogram* FindHistogram(const std::string& name);
static bool dump_on_exit() { return dump_on_exit_; }