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

Unified Diff: components/scheduler/renderer/renderer_scheduler_impl.cc

Issue 1616793004: Try a different way of unregistering TaskQueues from ThrottlingHelper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « no previous file | components/scheduler/renderer/throttling_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/scheduler/renderer/renderer_scheduler_impl.cc
diff --git a/components/scheduler/renderer/renderer_scheduler_impl.cc b/components/scheduler/renderer/renderer_scheduler_impl.cc
index 1c08a14ce2afa7aabe2a7e36127f41ccf67e3dad..a752bb7464dc424d8a4d72236eaaa9a780f19a03 100644
--- a/components/scheduler/renderer/renderer_scheduler_impl.cc
+++ b/components/scheduler/renderer/renderer_scheduler_impl.cc
@@ -224,6 +224,9 @@ RendererSchedulerImpl::NewRenderWidgetSchedulingState() {
void RendererSchedulerImpl::OnUnregisterTaskQueue(
const scoped_refptr<TaskQueue>& task_queue) {
+ if (throttling_helper_.get())
+ throttling_helper_->UnregisterTaskQueue(task_queue.get());
+
if (loading_task_runners_.find(task_queue) != loading_task_runners_.end()) {
task_queue->RemoveTaskObserver(
&MainThreadOnly().loading_task_cost_estimator);
« no previous file with comments | « no previous file | components/scheduler/renderer/throttling_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698