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

Unified Diff: content/browser/browser_main_loop.cc

Issue 2448953002: Add MemoryCoordinatorProxy::SetCurrentMemoryStateForTesting (Closed)
Patch Set: Add tests Created 4 years, 2 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 | « base/memory/memory_coordinator_proxy.cc ('k') | content/browser/memory/memory_coordinator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_main_loop.cc
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
index 02b0a5714686eac96ae977e7d293c1f0416373f0..b652408781292dcabc393cb8919471f25ea4acb3 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -1400,6 +1400,10 @@ void BrowserMainLoop::InitializeMemoryManagementComponent() {
SetGetCurrentMemoryStateCallback(base::Bind(
&MemoryCoordinator::GetCurrentMemoryState,
base::Unretained(MemoryCoordinator::GetInstance())));
+ base::MemoryCoordinatorProxy::GetInstance()->
+ SetSetCurrentMemoryStateForTestingCallback(base::Bind(
+ &MemoryCoordinator::SetCurrentMemoryStateForTesting,
+ base::Unretained(MemoryCoordinator::GetInstance())));
return;
}
« no previous file with comments | « base/memory/memory_coordinator_proxy.cc ('k') | content/browser/memory/memory_coordinator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698