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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 2094583002: Add MemoryCoordinator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment 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
Index: content/browser/renderer_host/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index b20943e3fe0383ebc9714547e46954590f0c58bb..f2d665a07b1f4ce5716450f6589a3098e709bfe0 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -44,6 +44,8 @@
#include "base/tracked_objects.h"
#include "build/build_config.h"
#include "cc/base/switches.h"
+#include "components/memory_coordinator/browser/memory_coordinator_impl.h"
+#include "components/memory_coordinator/common/memory_coordinator_features.h"
#include "components/scheduler/common/scheduler_switches.h"
#include "components/tracing/common/tracing_switches.h"
#include "components/webmessaging/broadcast_channel_provider.h"
@@ -2607,6 +2609,11 @@ void RenderProcessHostImpl::OnProcessLaunched() {
CreateSharedRendererHistogramAllocator();
}
+ if (memory_coordinator::IsEnabled()) {
+ BrowserMainLoop::GetInstance()->memory_coordinator()->RendererLaunched(
+ GetRemoteInterfaces());
+ }
+
// NOTE: This needs to be before sending queued messages because
// ExtensionService uses this notification to initialize the renderer process
// with state that must be there before any JavaScript executes.

Powered by Google App Engine
This is Rietveld 408576698