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

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

Issue 2650753002: Implement renderer importance API for WebView (Closed)
Patch Set: clean up unused local Created 3 years, 11 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 | « android_webview/native/aw_renderer_priority_manager.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6f3c7f85dd179967a05477702d74ebea64419e42..2bd939803068b8ec26fe36b29c3b9520917c1ab4 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -2806,6 +2806,11 @@ void RenderProcessHostImpl::UpdateProcessPriority() {
return;
}
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisableRendererPriorityManagement)) {
+ return;
+ }
+
// We background a process as soon as it hosts no active audio streams and no
// visible widgets -- the callers must call this function whenever we
// transition in/out of those states.
« no previous file with comments | « android_webview/native/aw_renderer_priority_manager.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698