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

Unified Diff: base/memory/discardable_shared_memory.h

Issue 842523002: base: Change DCHECK_IS_ON to a macro DCHECK_IS_ON(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dcheck2: withoutandroidchange Created 5 years, 11 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: base/memory/discardable_shared_memory.h
diff --git a/base/memory/discardable_shared_memory.h b/base/memory/discardable_shared_memory.h
index c69c970edc8c0d6f7dd21985c30e57d007aeb89e..abee8687a86ee43547057274386244275517d035 100644
--- a/base/memory/discardable_shared_memory.h
+++ b/base/memory/discardable_shared_memory.h
@@ -11,7 +11,7 @@
#include "base/threading/thread_collision_warner.h"
#include "base/time/time.h"
-#if DCHECK_IS_ON
+#if DCHECK_IS_ON()
#include <set>
#endif
@@ -119,7 +119,7 @@ class BASE_EXPORT DiscardableSharedMemory {
SharedMemory shared_memory_;
size_t mapped_size_;
size_t locked_page_count_;
-#if DCHECK_IS_ON
+#if DCHECK_IS_ON()
std::set<size_t> locked_pages_;
#endif
// Implementation is not thread-safe but still usable if clients are

Powered by Google App Engine
This is Rietveld 408576698