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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.h

Issue 2552993002: Rename activeDOMObjectsAreStopped to isContextDestroyed (Closed)
Patch Set: Created 4 years 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/bindings/core/v8/ScriptPromiseResolver.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.h b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.h
index 079fd6ddd1fb936cc823f6b1e5540b9b0d36af2c..0df407c988b5026f116bb084cd3a15b5b274aba4 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.h
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseResolver.h
@@ -54,7 +54,7 @@ class CORE_EXPORT ScriptPromiseResolver
// ExecutionContext is stopped.
ASSERT(m_state == Detached || !m_isPromiseCalled ||
!getScriptState()->contextIsValid() || !getExecutionContext() ||
- getExecutionContext()->activeDOMObjectsAreStopped());
+ getExecutionContext()->isContextDestroyed());
}
#endif
@@ -120,8 +120,7 @@ class CORE_EXPORT ScriptPromiseResolver
template <typename T>
void resolveOrReject(T value, ResolutionState newState) {
if (m_state != Pending || !getScriptState()->contextIsValid() ||
- !getExecutionContext() ||
- getExecutionContext()->activeDOMObjectsAreStopped())
+ !getExecutionContext() || getExecutionContext()->isContextDestroyed())
return;
ASSERT(newState == Resolving || newState == Rejecting);
m_state = newState;

Powered by Google App Engine
This is Rietveld 408576698