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

Unified Diff: content/public/test/memory_coordinator_test_utils.cc

Issue 2703743002: Refactor MemoryCoordinatorProxy (Closed)
Patch Set: Remove atomics 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 | « content/browser/memory/memory_coordinator_impl_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/memory_coordinator_test_utils.cc
diff --git a/content/public/test/memory_coordinator_test_utils.cc b/content/public/test/memory_coordinator_test_utils.cc
index 5dd9d41fc38cddf83afb8dd0b8b54810c380a7e6..b7792891acbc32ee64bad0dc9cabb4494315c5e7 100644
--- a/content/public/test/memory_coordinator_test_utils.cc
+++ b/content/public/test/memory_coordinator_test_utils.cc
@@ -11,14 +11,8 @@
namespace content {
void SetUpMemoryCoordinatorProxyForTesting() {
- base::MemoryCoordinatorProxy::GetInstance()->
- SetGetCurrentMemoryStateCallback(base::Bind(
- &MemoryCoordinatorImpl::GetCurrentMemoryState,
- base::Unretained(MemoryCoordinatorImpl::GetInstance())));
- base::MemoryCoordinatorProxy::GetInstance()->
- SetSetCurrentMemoryStateForTestingCallback(base::Bind(
- &MemoryCoordinatorImpl::SetCurrentMemoryStateForTesting,
- base::Unretained(MemoryCoordinatorImpl::GetInstance())));
+ // Make sure that MemoryCoordinatorImpl is initialized.
+ MemoryCoordinatorImpl::GetInstance();
}
} // namespace content
« no previous file with comments | « content/browser/memory/memory_coordinator_impl_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698