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

Unified Diff: components/scheduler/child/single_thread_idle_task_runner.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/child/single_thread_idle_task_runner.cc
diff --git a/components/scheduler/child/single_thread_idle_task_runner.cc b/components/scheduler/child/single_thread_idle_task_runner.cc
index e73adf543a12280f8e1863b03b8ccc6fd6cb6372..9b6bba38bfcc6e84df63a297dddc8d5c12b236ad 100644
--- a/components/scheduler/child/single_thread_idle_task_runner.cc
+++ b/components/scheduler/child/single_thread_idle_task_runner.cc
@@ -84,7 +84,7 @@ void SingleThreadIdleTaskRunner::RunTask(IdleTask idle_task) {
void SingleThreadIdleTaskRunner::SetBlameContext(
base::trace_event::BlameContext* blame_context) {
- blame_context_ = blame_context;
+ blame_context_ = blame_context ? blame_context->weak_ptr() : nullptr;
Primiano Tucci (use gerrit) 2016/06/10 07:50:35 how do you know that here you are on the right thr
Xiaocheng 2016/06/10 08:07:08 Are you implying any potentially risky design? In
}
} // namespace scheduler

Powered by Google App Engine
This is Rietveld 408576698