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

Unified Diff: content/browser/memory/memory_coordinator.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/browser/memory/memory_coordinator.cc
diff --git a/content/browser/memory/memory_coordinator.cc b/content/browser/memory/memory_coordinator.cc
index b691322002007921695018b1e3ae16c69fec041d..47fc0210f666d87d58a8f37f5658f094d852302e 100644
--- a/content/browser/memory/memory_coordinator.cc
+++ b/content/browser/memory/memory_coordinator.cc
@@ -137,12 +137,10 @@ base::MemoryState MemoryCoordinator::GetGlobalMemoryState() const {
return base::MemoryState::UNKNOWN;
}
-base::MemoryState MemoryCoordinator::GetCurrentMemoryState() const {
- return base::MemoryState::UNKNOWN;
-}
-
-void MemoryCoordinator::SetCurrentMemoryStateForTesting(
- base::MemoryState memory_state) {
+base::WeakPtr<base::MemoryCoordinatorInterface>
+MemoryCoordinator::GetWeakPtr() {
+ NOTREACHED();
+ return nullptr;
}
void MemoryCoordinator::AddChildForTesting(

Powered by Google App Engine
This is Rietveld 408576698