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

Unified Diff: net/disk_cache/v3/backend_worker.cc

Issue 140893013: Clean up dependencies for disk_cache histogram_macros.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: spelling 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/v3/backend_worker.cc
diff --git a/net/disk_cache/v3/backend_worker.cc b/net/disk_cache/v3/backend_worker.cc
index be12a96eebedbd19b32fe545eba807a1b26044b4..6de0dcda3f66bfddf6d32bea74c2e5b1ea542d7f 100644
--- a/net/disk_cache/v3/backend_worker.cc
+++ b/net/disk_cache/v3/backend_worker.cc
@@ -27,8 +27,9 @@
#include "net/disk_cache/experiments.h"
#include "net/disk_cache/file.h"
-// This has to be defined before including histogram_macros.h from this file.
-#define NET_DISK_CACHE_BACKEND_IMPL_CC_
+// Define BLOCKFILE_BACKEND_IMPL_OBJ to be a disk_cache::BackendImpl* in order
+// to use the CACHE_UMA histogram macro.
+#define BLOCKFILE_BACKEND_IMPL_OBJ this
#include "net/disk_cache/histogram_macros.h"
using base::Time;

Powered by Google App Engine
This is Rietveld 408576698