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

Unified Diff: net/disk_cache/histogram_macros.h

Issue 140893013: Clean up dependencies for disk_cache histogram_macros.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup pipelining compatibility client Created 6 years, 10 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
Index: net/disk_cache/histogram_macros.h
diff --git a/net/disk_cache/histogram_macros.h b/net/disk_cache/histogram_macros.h
index 651bce96f2de8fbc2b0010a83c14f82ec383d9cb..a3ac330d76fb55d69b3a81d6fcfe49bd15dc8a69 100644
--- a/net/disk_cache/histogram_macros.h
+++ b/net/disk_cache/histogram_macros.h
@@ -84,11 +84,7 @@
#define CACHE_HISTOGRAM_CACHE_ERROR(name, sample) \
CACHE_HISTOGRAM_ENUMERATION(name, sample, 50)
-#ifdef NET_DISK_CACHE_BACKEND_IMPL_CC_
-#define BACKEND_OBJ this
-#else
-#define BACKEND_OBJ backend_
-#endif
+#define BACKEND_OBJ CACHE_HISTOGRAM_MACROS_BACKEND_IMPL_OBJ
rvargas (doing something else) 2014/02/11 02:17:15 Why not go all the way and let the caller define B
gavinp 2014/02/11 16:12:45 Done. Went with BLOCKFILE_BACKEND_IMPL_OBJ, since
rvargas (doing something else) 2014/02/11 19:41:48 Lots of redundancy on that name IMO (BLOCKFILE is
// Generates a UMA histogram of the given type, generating the proper name for
// it (asking backend_->HistogramName), and adding the provided sample.

Powered by Google App Engine
This is Rietveld 408576698