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

Unified Diff: third_party/WebKit/Source/core/streams/UnderlyingSourceBase.cpp

Issue 1899873006: Make Response::body return v8-extra based stream behind flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@notify-locked-released
Patch Set: 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/streams/UnderlyingSourceBase.cpp
diff --git a/third_party/WebKit/Source/core/streams/UnderlyingSourceBase.cpp b/third_party/WebKit/Source/core/streams/UnderlyingSourceBase.cpp
index b63fe960860111b84c995e15bd4ffeda51ab5471..d1a2c4c925c14d72b3fc8af5ab8ecf54f6d512c7 100644
--- a/third_party/WebKit/Source/core/streams/UnderlyingSourceBase.cpp
+++ b/third_party/WebKit/Source/core/streams/UnderlyingSourceBase.cpp
@@ -67,8 +67,10 @@ bool UnderlyingSourceBase::hasPendingActivity() const
void UnderlyingSourceBase::stop()
{
- m_controller->noteHasBeenCanceled();
- m_controller.clear();
+ if (m_controller) {
+ m_controller->noteHasBeenCanceled();
+ m_controller.clear();
+ }
}
DEFINE_TRACE(UnderlyingSourceBase)

Powered by Google App Engine
This is Rietveld 408576698