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

Unified Diff: net/disk_cache/v3/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/v3/eviction_v3.cc ('k') | net/net.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;\
« no previous file with comments | « net/disk_cache/v3/eviction_v3.cc ('k') | net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698