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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptPromiseProperty.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/ScriptPromiseProperty.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseProperty.h b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseProperty.h
index 0b5a2177a24f84f37d095a0ccf459d8efba63944..00558812de31ef5da45d8b177a33940a45701da5 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseProperty.h
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseProperty.h
@@ -102,8 +102,7 @@ void ScriptPromiseProperty<HolderType, ResolvedType, RejectedType>::resolve(
ASSERT_NOT_REACHED();
return;
}
- if (!getExecutionContext() ||
- getExecutionContext()->activeDOMObjectsAreStopped())
+ if (!getExecutionContext() || getExecutionContext()->isContextDestroyed())
return;
m_resolved = value;
resolveOrReject(Resolved);
@@ -117,8 +116,7 @@ void ScriptPromiseProperty<HolderType, ResolvedType, RejectedType>::reject(
ASSERT_NOT_REACHED();
return;
}
- if (!getExecutionContext() ||
- getExecutionContext()->activeDOMObjectsAreStopped())
+ if (!getExecutionContext() || getExecutionContext()->isContextDestroyed())
return;
m_rejected = value;
resolveOrReject(Rejected);

Powered by Google App Engine
This is Rietveld 408576698