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

Unified Diff: third_party/WebKit/Source/core/frame/DOMTimerCoordinator.cpp

Issue 1857713004: DevTools: simplify the async instrumentation harness. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: same with scriptpromiseresolver Created 4 years, 8 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/frame/DOMTimerCoordinator.cpp
diff --git a/third_party/WebKit/Source/core/frame/DOMTimerCoordinator.cpp b/third_party/WebKit/Source/core/frame/DOMTimerCoordinator.cpp
index e7238f90ecf41b3b538d0700749f994f00783dfb..27e815636bbfc1969b464f3eb8940c69a866a27e 100644
--- a/third_party/WebKit/Source/core/frame/DOMTimerCoordinator.cpp
+++ b/third_party/WebKit/Source/core/frame/DOMTimerCoordinator.cpp
@@ -31,15 +31,15 @@ int DOMTimerCoordinator::installNewTimeout(ExecutionContext* context, ScheduledA
return timeoutID;
}
-void DOMTimerCoordinator::removeTimeoutByID(int timeoutID)
+DOMTimer* DOMTimerCoordinator::removeTimeoutByID(int timeoutID)
{
if (timeoutID <= 0)
- return;
+ return nullptr;
if (DOMTimer* removedTimer = m_timers.get(timeoutID))
removedTimer->disposeTimer();
- m_timers.remove(timeoutID);
+ return m_timers.take(timeoutID);
}
DEFINE_TRACE(DOMTimerCoordinator)

Powered by Google App Engine
This is Rietveld 408576698