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

Unified Diff: components/scheduler/base/task_queue_impl.cc

Issue 2053233002: Make sure FrameScheduler is cleared when LocalFrame::detach() finishes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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: components/scheduler/base/task_queue_impl.cc
diff --git a/components/scheduler/base/task_queue_impl.cc b/components/scheduler/base/task_queue_impl.cc
index c3f1d8a00d478fff5de3826d5bca312c711afd12..6ceb993291485a0ec8f6298439353f8577925622 100644
--- a/components/scheduler/base/task_queue_impl.cc
+++ b/components/scheduler/base/task_queue_impl.cc
@@ -661,7 +661,8 @@ TimeDomain* TaskQueueImpl::GetTimeDomain() const {
void TaskQueueImpl::SetBlameContext(
base::trace_event::BlameContext* blame_context) {
- main_thread_only().blame_context = blame_context;
+ main_thread_only().blame_context =
+ blame_context ? blame_context->weak_ptr() : nullptr;
}
// static

Powered by Google App Engine
This is Rietveld 408576698