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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp

Issue 2539113003: Clear PendingScript::m_streamer when it is cancelled (Closed)
Patch Set: CHECK 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/PendingScript.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp
index a0407d44ac8b0b10303f49f24b0faae9ec9fe7df..8c889d8b6cfb32760869cba1e6554ea28942b1e3 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp
@@ -405,7 +405,7 @@ void ScriptStreamer::suppressStreaming() {
void ScriptStreamer::notifyAppendData(ScriptResource* resource) {
DCHECK(isMainThread());
- DCHECK_EQ(m_resource, resource);
+ CHECK_EQ(m_resource, resource);
{
MutexLocker locker(m_mutex);
if (m_streamingSuppressed)
@@ -500,7 +500,7 @@ void ScriptStreamer::notifyAppendData(ScriptResource* resource) {
void ScriptStreamer::notifyFinished(Resource* resource) {
DCHECK(isMainThread());
- DCHECK_EQ(m_resource, resource);
+ CHECK_EQ(m_resource, resource);
// A special case: empty and small scripts. We didn't receive enough data to
// start the streaming before this notification. In that case, there won't
// be a "parsing complete" notification either, and we should not wait for
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/PendingScript.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698