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

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

Issue 2700293002: DevTools: do not use RAII for sync native breakpoints, reuse AsyncTask where possible. (Closed)
Patch Set: same with unused assert removed - assert is trivial Created 3 years, 10 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 dc805198ee42ceb363b18e12793674a53cf9d4e6..8aec65a77bf3b409ef68f1f19b9bbec7a0372ef1 100644
--- a/third_party/WebKit/Source/core/frame/DOMTimerCoordinator.cpp
+++ b/third_party/WebKit/Source/core/frame/DOMTimerCoordinator.cpp
@@ -23,14 +23,8 @@ int DOMTimerCoordinator::installNewTimeout(ExecutionContext* context,
// FIXME: DOMTimers depends heavily on ExecutionContext. Decouple them.
ASSERT(context->timers() == this);
int timeoutID = nextID();
- TimeoutMap::AddResult result = m_timers.insert(
- timeoutID,
- DOMTimer::create(context, action, timeout, singleShot, timeoutID));
- ASSERT(result.isNewEntry);
- DOMTimer* timer = result.storedValue->value.get();
-
- timer->suspendIfNeeded();
-
+ m_timers.insert(timeoutID, DOMTimer::create(context, action, timeout,
+ singleShot, timeoutID));
return timeoutID;
}
« no previous file with comments | « third_party/WebKit/Source/core/frame/DOMTimer.cpp ('k') | third_party/WebKit/Source/core/frame/DOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698