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

Unified Diff: Source/modules/websockets/MainThreadWebSocketChannel.cpp

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/vibration/NavigatorVibration.cpp ('k') | Source/modules/websockets/WebSocket.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/websockets/MainThreadWebSocketChannel.cpp
diff --git a/Source/modules/websockets/MainThreadWebSocketChannel.cpp b/Source/modules/websockets/MainThreadWebSocketChannel.cpp
index 8ffd35fe57a495dd76fd640f48ef52930af3d586..63dafc21c9d3457b5604ead77e030fc00721824e 100644
--- a/Source/modules/websockets/MainThreadWebSocketChannel.cpp
+++ b/Source/modules/websockets/MainThreadWebSocketChannel.cpp
@@ -177,7 +177,7 @@ void MainThreadWebSocketChannel::close(int code, const String& reason)
return;
startClosingHandshake(code, reason);
if (!m_closingTimer.isActive())
- m_closingTimer.startOneShot(2 * TCPMaximumSegmentLifetime);
+ m_closingTimer.startOneShot(2 * TCPMaximumSegmentLifetime, FROM_HERE);
}
void MainThreadWebSocketChannel::clearDocument()
@@ -243,7 +243,7 @@ void MainThreadWebSocketChannel::resume()
{
m_suspended = false;
if ((!m_buffer.isEmpty() || (m_state == ChannelClosed)) && m_client && !m_resumeTimer.isActive())
- m_resumeTimer.startOneShot(0);
+ m_resumeTimer.startOneShot(0, FROM_HERE);
}
void MainThreadWebSocketChannel::willOpenSocketStream(SocketStreamHandle* handle)
« no previous file with comments | « Source/modules/vibration/NavigatorVibration.cpp ('k') | Source/modules/websockets/WebSocket.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698