summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/histogram_macros.h
diff options
context:
space:
mode:
authorziadh@chromium.org <ziadh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-02 21:31:44 +0000
committerziadh@chromium.org <ziadh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-02 21:31:44 +0000
commita764bf5e513ff576f538c34b9ece9df1570e999c (patch)
tree44f5918c5015c1f86244aacf54c6ab90c03c358c /net/disk_cache/histogram_macros.h
parent79fed69d92dede3b92fd3a175b520ae6949f9233 (diff)
downloadchromium_src-a764bf5e513ff576f538c34b9ece9df1570e999c.zip
chromium_src-a764bf5e513ff576f538c34b9ece9df1570e999c.tar.gz
chromium_src-a764bf5e513ff576f538c34b9ece9df1570e999c.tar.bz2
Refactored Histogram::FactoryGet() to be style-compliant
Currently, two (2) overloaded versions of Histogram::FactoryGet() exist. Google's C++ style guide discourages such implementations. I refactored the methods into Histogram::FactoryGet() (no name change), which takes 'Sample' types as arguments, and Histogram::FactoryTimeGet(), which takes base::TimeDelta types as arguments. r = jar Review URL: http://codereview.chromium.org/2423004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48766 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/histogram_macros.h')
-rw-r--r--net/disk_cache/histogram_macros.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/disk_cache/histogram_macros.h b/net/disk_cache/histogram_macros.h
index bbea303..361a9d6 100644
--- a/net/disk_cache/histogram_macros.h
+++ b/net/disk_cache/histogram_macros.h
@@ -36,8 +36,8 @@
do { \
static scoped_refptr<Histogram> counter; \
if (!counter || name != counter->histogram_name()) \
- counter = Histogram::FactoryGet(name, min, max, bucket_count, \
- Histogram::kUmaTargetedHistogramFlag); \
+ counter = Histogram::FactoryTimeGet(name, min, max, bucket_count, \
+ Histogram::kUmaTargetedHistogramFlag); \
counter->AddTime(sample); \
} while (0)