diff options
author | asvitkine <asvitkine@chromium.org> | 2014-08-25 21:39:35 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-08-26 04:41:10 +0000 |
commit | c0fb802166c8389285c8a850bd47d2d96935f6f1 (patch) | |
tree | ba22f56fcdd9a93ba6eca61d754593b327b8629a /crypto | |
parent | 663b9f47b6611de54f4e358d50baf7e91717c41c (diff) | |
download | chromium_src-c0fb802166c8389285c8a850bd47d2d96935f6f1.zip chromium_src-c0fb802166c8389285c8a850bd47d2d96935f6f1.tar.gz chromium_src-c0fb802166c8389285c8a850bd47d2d96935f6f1.tar.bz2 |
Add LOCAL_ prefix to non-UMA histogram macros.
This makes it harder to accidently use the wrong
macro.
Also, removes the D* variants of the macros and
associated DebugNow() function. These were rarely
used and removing them removes clutter from the
header file. Existing uses converted to be behind
NDEBUG ifdefs.
No functional changes except for a fix to the
code in content_based_thumbnailing_algorithm.cc
which was incorrectly using a ternary operator for
the histogram name (which doesn't work since the
macros cache the histogram object) and removal
of local histograms Spellcheck.SuggestTime and
Spellcheck.InitTime per groby@.
Since this is an API rename, TBR'ing downstream
owners.
BUG=311349
TBR=groby@chromium.org,zea@chromium.org,jeremy@chromium.org,reveman@chromium.org,agl@chromium.org,jam@chromium.org
Review URL: https://codereview.chromium.org/484603006
Cr-Commit-Position: refs/heads/master@{#291840}
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/nss_util.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/crypto/nss_util.cc b/crypto/nss_util.cc index 062bcb5..f0c726d 100644 --- a/crypto/nss_util.cc +++ b/crypto/nss_util.cc @@ -750,12 +750,12 @@ class NSSInitSingleton { 0, NSS_USE_ALG_IN_CERT_SIGNATURE); // The UMA bit is conditionally set for this histogram in - // chrome/common/startup_metric_utils.cc . - HISTOGRAM_CUSTOM_TIMES("Startup.SlowStartupNSSInit", - base::TimeTicks::Now() - start_time, - base::TimeDelta::FromMilliseconds(10), - base::TimeDelta::FromHours(1), - 50); + // components/startup_metric_utils.cc . + LOCAL_HISTOGRAM_CUSTOM_TIMES("Startup.SlowStartupNSSInit", + base::TimeTicks::Now() - start_time, + base::TimeDelta::FromMilliseconds(10), + base::TimeDelta::FromHours(1), + 50); } // NOTE(willchan): We don't actually execute this code since we leak NSS to |