Index: net/disk_cache/v3/histogram_macros.h |
diff --git a/net/disk_cache/v3/histogram_macros.h b/net/disk_cache/v3/histogram_macros.h |
index 4f37970116c287a79a27638bab18917a5e0abbaa..50d4d754964e01d576415a7b1fbb70d1ae59e952 100644 |
--- a/net/disk_cache/v3/histogram_macros.h |
+++ b/net/disk_cache/v3/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 |
@@ -99,8 +93,9 @@ |
// UMA_HISTOGRAM_COUNTS("DiskCache3.MyName_AppCache", 20); |
// |
#define CACHE_UMA(type, name, sample) {\ |
- const std::string my_name = BACKEND_OBJ->HistogramName(name);\ |
- switch (BACKEND_OBJ->cache_type()) {\ |
+ const std::string my_name =\ |
+ CACHE_UMA_BACKEND_IMPL_OBJ->HistogramName(name);\ |
+ switch (CACHE_UMA_BACKEND_IMPL_OBJ->cache_type()) {\ |
case net::DISK_CACHE:\ |
CACHE_HISTOGRAM_##type(my_name.data(), sample);\ |
break;\ |