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

Unified Diff: third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp

Issue 2401123002: UserGestureIndicator is a mess. Clean it up. (Closed)
Patch Set: Callback cleanup, comments Created 4 years, 2 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: third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp
diff --git a/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp b/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp
index a6108f103b8a732bdb3ddaa4dea0369bf49a573a..1fb65d26738ec804bc90d5903f86c48f9af57287 100644
--- a/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp
+++ b/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp
@@ -243,7 +243,7 @@ void MainThreadDebugger::runMessageLoopOnPause(int contextGroupId) {
m_paused = true;
if (UserGestureToken* token = UserGestureIndicator::currentToken())
- token->setPauseInDebugger();
+ token->setTimeoutPolicy(UserGestureToken::HasPaused);
// Wait for continue or step command.
if (m_clientMessageLoop)
m_clientMessageLoop->run(pausedFrame);
« no previous file with comments | « third_party/WebKit/Source/core/inspector/DevToolsHost.cpp ('k') | third_party/WebKit/Source/core/inspector/ThreadDebugger.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698