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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 2437543002: Should reset record_purge_suspend_metric_closure_ CancelableCallback in OnProcessBackgrounded after… (Closed)
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index 923db0079a6c2e61226eb05a69196a221674e412..fda904d5dbdd672a36c3e3ac95ade64d82ffaa3b 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -1760,6 +1760,9 @@ void RenderThreadImpl::OnProcessBackgrounded(bool backgrounded) {
} else {
renderer_scheduler_->OnRendererForegrounded();
record_purge_suspend_metric_closure_.Cancel();
+ record_purge_suspend_metric_closure_.Reset(
+ base::Bind(&RenderThreadImpl::RecordPurgeAndSuspendMetrics,
+ base::Unretained(this)));
is_renderer_suspended_ = false;
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698