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

Unified Diff: content/browser/browser_main_loop.cc

Issue 2172893003: MC: WIP: dispatching notifications from browser to renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mc-4-dispatch-callback
Patch Set: Created 4 years, 5 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 | « components/memory_coordinator/browser/memory_coordinator.cc ('k') | no next file » | 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 b26c59b3b3c371eb15ec95257c78c08f0cc64e4f..dbfef169014f47da6c3b98caa81e26674a5c2727 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -726,6 +726,10 @@ int BrowserMainLoop::PreCreateThreads() {
if (memory_coordinator::IsEnabled()) {
memory_coordinator_.reset(new memory_coordinator::MemoryCoordinator);
+ if (memory_pressure_monitor_.get()) {
+ memory_pressure_monitor_->SetDispatchCallback(
+ memory_coordinator_->pressure_level_dispatcher());
+ }
}
#if defined(ENABLE_PLUGINS)
« no previous file with comments | « components/memory_coordinator/browser/memory_coordinator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698