Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(363)

Unified Diff: chromecast/base/metrics/cast_histograms.h

Issue 842523002: base: Change DCHECK_IS_ON to a macro DCHECK_IS_ON(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dcheck2: withoutandroidchange Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/installer/util/shell_util.cc ('k') | components/history/core/browser/top_sites_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/base/metrics/cast_histograms.h
diff --git a/chromecast/base/metrics/cast_histograms.h b/chromecast/base/metrics/cast_histograms.h
index 4907c1a84ef69985a2890642769a140d0d8bc2ea..941242e6aa3426548b982f9153d48f42f8f428d8 100644
--- a/chromecast/base/metrics/cast_histograms.h
+++ b/chromecast/base/metrics/cast_histograms.h
@@ -12,15 +12,14 @@
// through base::subtle::Release_Store() and base::subtle::Acquire_Load().
// If the histogram name changes between subsequent calls, use this non-cached
// version that always calls histogram_factory_get_invocation.
-#define STATIC_HISTOGRAM_POINTER_BLOCK_NO_CACHE( \
- constant_histogram_name, \
- histogram_add_method_invocation, \
- histogram_factory_get_invocation) \
- do { \
+#define STATIC_HISTOGRAM_POINTER_BLOCK_NO_CACHE( \
+ constant_histogram_name, histogram_add_method_invocation, \
lcwu1 2015/01/07 18:49:56 Any reason why you want to re-format the code here
Nico 2015/01/07 19:02:50 The old formatting makes sense if you have to form
danakj 2015/01/07 19:31:53 Right, clang-format did this.
+ histogram_factory_get_invocation) \
+ do { \
base::HistogramBase* histogram_pointer = histogram_factory_get_invocation; \
- if (DCHECK_IS_ON) \
- histogram_pointer->CheckName(constant_histogram_name); \
- histogram_pointer->histogram_add_method_invocation; \
+ if (DCHECK_IS_ON()) \
+ histogram_pointer->CheckName(constant_histogram_name); \
+ histogram_pointer->histogram_add_method_invocation; \
} while (0)
#define UMA_HISTOGRAM_CUSTOM_TIMES_NO_CACHE( \
« no previous file with comments | « chrome/installer/util/shell_util.cc ('k') | components/history/core/browser/top_sites_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698