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

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

Issue 2565323002: Stop using callbacks in MemoryCoordinatorProxy (Closed)
Patch Set: fix Created 4 years 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: 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 be6143776cd838d5d5f3ac172d5e7f59c36c41e3..eb372ccbe906a9c90f9051311e2ecedb1669a4d3 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(
- &content::MemoryCoordinator::GetCurrentMemoryState,
- base::Unretained(content::MemoryCoordinator::GetInstance())));
- base::MemoryCoordinatorProxy::GetInstance()->
- SetSetCurrentMemoryStateForTestingCallback(base::Bind(
- &content::MemoryCoordinator::SetCurrentMemoryStateForTesting,
- base::Unretained(content::MemoryCoordinator::GetInstance())));
+ base::MemoryCoordinatorProxy::GetInstance()->Set(
+ content::MemoryCoordinator::GetInstance()->GetWeakPtr());
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698