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

Unified Diff: content/browser/browser_main_loop.cc

Issue 2479673002: Expose MemoryCoordinator's global budget information. (Closed)
Patch Set: Small cleanup. Created 4 years, 1 month 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/browser_main_loop.cc
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
index b652408781292dcabc393cb8919471f25ea4acb3..cc4e4469702ba8eee533c6575d0449b220972667 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -1404,6 +1404,10 @@ void BrowserMainLoop::InitializeMemoryManagementComponent() {
SetSetCurrentMemoryStateForTestingCallback(base::Bind(
&MemoryCoordinator::SetCurrentMemoryStateForTesting,
base::Unretained(MemoryCoordinator::GetInstance())));
+ base::MemoryCoordinatorProxy::GetInstance()->
+ SetGetRemainingGlobalBudgetCallback(base::Bind(
+ &MemoryCoordinator::GetRemainingGlobalBudget,
+ base::Unretained(MemoryCoordinator::GetInstance())));
return;
}

Powered by Google App Engine
This is Rietveld 408576698