Index: base/trace_event/memory_dump_manager.cc |
diff --git a/base/trace_event/memory_dump_manager.cc b/base/trace_event/memory_dump_manager.cc |
index 37fdbe18566ed790ab77f84610634a0ad64d9364..fffea34e0c0b9cd95bc024b081f9d9b553fb2bf8 100644 |
--- a/base/trace_event/memory_dump_manager.cc |
+++ b/base/trace_event/memory_dump_manager.cc |
@@ -226,9 +226,9 @@ void MemoryDumpManager::UnregisterDumpProvider(MemoryDumpProvider* mdp) { |
// and OnMemoryDump() at the same time). |
// Otherwise, it is not possible to guarantee that its unregistration is |
// race-free. If you hit this DCHECK, your MDP has a bug. |
- DCHECK_IMPLIES( |
- subtle::NoBarrier_Load(&memory_tracing_enabled_), |
- mdp_info.task_runner && mdp_info.task_runner->BelongsToCurrentThread()) |
+ DCHECK( |
+ !subtle::NoBarrier_Load(&memory_tracing_enabled_) || |
+ (mdp_info.task_runner && mdp_info.task_runner->BelongsToCurrentThread())) |
<< "The MemoryDumpProvider attempted to unregister itself in a racy way. " |
<< " Please file a crbug."; |