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

Unified Diff: third_party/WebKit/Source/modules/fetch/Body.cpp

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/modules/fetch/Body.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/Body.cpp b/third_party/WebKit/Source/modules/fetch/Body.cpp
index ad7a829596abd4d44f99318530c6653bcc50f67f..e77c139806c634b38f3d96adbeb7239c590eb172 100644
--- a/third_party/WebKit/Source/modules/fetch/Body.cpp
+++ b/third_party/WebKit/Source/modules/fetch/Body.cpp
@@ -93,7 +93,7 @@ class BodyJsonConsumer final : public BodyConsumerBase {
void didFetchDataLoadedString(const String& string) override {
if (!resolver()->getExecutionContext() ||
- resolver()->getExecutionContext()->activeDOMObjectsAreStopped())
+ resolver()->getExecutionContext()->isContextDestroyed())
return;
ScriptState::Scope scope(resolver()->getScriptState());
v8::Isolate* isolate = resolver()->getScriptState()->isolate();
@@ -217,8 +217,7 @@ bool Body::isBodyLocked() {
}
bool Body::hasPendingActivity() const {
- if (!getExecutionContext() ||
- getExecutionContext()->activeDOMObjectsAreStopped())
+ if (!getExecutionContext() || getExecutionContext()->isContextDestroyed())
return false;
if (!bodyBuffer())
return false;

Powered by Google App Engine
This is Rietveld 408576698