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

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

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.h
diff --git a/components/scheduler/base/task_queue_impl.h b/components/scheduler/base/task_queue_impl.h
index 69fd02e854927f58d4b7ac2b09fa6d1217134b53..b0d16bb134bec524c3ee152c5bfb6238ffb118fa 100644
--- a/components/scheduler/base/task_queue_impl.h
+++ b/components/scheduler/base/task_queue_impl.h
@@ -205,7 +205,7 @@ class SCHEDULER_EXPORT TaskQueueImpl final : public TaskQueue {
base::ObserverList<base::MessageLoop::TaskObserver> task_observers;
size_t set_index;
bool is_enabled;
- base::trace_event::BlameContext* blame_context; // Not owned.
+ base::WeakPtr<base::trace_event::BlameContext> blame_context;
};
~TaskQueueImpl() override;

Powered by Google App Engine
This is Rietveld 408576698