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

Unified Diff: base/memory/memory_coordinator_proxy.cc

Issue 2726983006: Clean up after each MemoryCoordinatorImpl test (Closed)
Patch Set: Allow SetMemoryCoordinator to nullify Created 3 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 | « no previous file | content/browser/memory/memory_coordinator_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/memory/memory_coordinator_proxy.cc
diff --git a/base/memory/memory_coordinator_proxy.cc b/base/memory/memory_coordinator_proxy.cc
index 59c7a6a1ef287ce8fb6887a49594c1cd42adb385..4a2598860118ee3279b129ac9436b4182cd01008 100644
--- a/base/memory/memory_coordinator_proxy.cc
+++ b/base/memory/memory_coordinator_proxy.cc
@@ -26,7 +26,7 @@ MemoryCoordinatorProxy* MemoryCoordinatorProxy::GetInstance() {
// static
void MemoryCoordinatorProxy::SetMemoryCoordinator(
MemoryCoordinator* coordinator) {
- DCHECK(!g_memory_coordinator);
+ DCHECK(!g_memory_coordinator || !coordinator);
g_memory_coordinator = coordinator;
}
« no previous file with comments | « no previous file | content/browser/memory/memory_coordinator_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698