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

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: fix fat finger 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
« no previous file with comments | « net/disk_cache/eviction.cc ('k') | net/disk_cache/in_flight_backend_io.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..6af9ca18ebe350a6f4dc684b1a3c39fa8e3ac380 100644
--- a/net/disk_cache/histogram_macros.h
+++ b/net/disk_cache/histogram_macros.h
@@ -84,12 +84,6 @@
#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
-
// Generates a UMA histogram of the given type, generating the proper name for
// it (asking backend_->HistogramName), and adding the provided sample.
// For example, to generate a regualar UMA_HISTOGRAM_COUNTS, this macro would
@@ -101,8 +95,9 @@
// UMA_HISTOGRAM_COUNTS("DiskCache.2.MyExperiment_530", 55);
//
#define CACHE_UMA(type, name, experiment, sample) {\
- const std::string my_name = BACKEND_OBJ->HistogramName(name, experiment);\
- switch (BACKEND_OBJ->cache_type()) {\
+ const std::string my_name =\
+ CACHE_UMA_BACKEND_IMPL_OBJ->HistogramName(name, experiment);\
+ switch (CACHE_UMA_BACKEND_IMPL_OBJ->cache_type()) {\
case net::DISK_CACHE:\
CACHE_HISTOGRAM_##type(my_name.data(), sample);\
break;\
« no previous file with comments | « net/disk_cache/eviction.cc ('k') | net/disk_cache/in_flight_backend_io.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698