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

Unified Diff: Source/platform/AsyncMethodRunner.h

Issue 189833009: Trace where timers were scheduled in Blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 6 years, 9 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 | « Source/modules/websockets/WebSocket.cpp ('k') | Source/platform/ThreadTimers.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/AsyncMethodRunner.h
diff --git a/Source/platform/AsyncMethodRunner.h b/Source/platform/AsyncMethodRunner.h
index da86ed3ca3d7e8b14faab4d356a4a03d6e7ac8bf..3d16b6433a4fcdc5ef90799ca10fb1cde3231201 100644
--- a/Source/platform/AsyncMethodRunner.h
+++ b/Source/platform/AsyncMethodRunner.h
@@ -64,8 +64,9 @@ public:
return;
}
+ // FIXME: runAsync should take a TraceLocation and pass it to timer here.
if (!m_timer.isActive())
- m_timer.startOneShot(0);
+ m_timer.startOneShot(0, FROM_HERE);
}
// If it's scheduled to run the method, cancel it and remember to schedule
@@ -93,7 +94,8 @@ public:
return;
m_runWhenResumed = false;
- m_timer.startOneShot(0);
+ // FIXME: resume should take a TraceLocation and pass it to timer here.
+ m_timer.startOneShot(0, FROM_HERE);
}
void stop()
« no previous file with comments | « Source/modules/websockets/WebSocket.cpp ('k') | Source/platform/ThreadTimers.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698