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

Unified Diff: third_party/WebKit/Source/core/fetch/MultipartImageResourceParser.cpp

Issue 1756953002: Stop dispatching notifyFinished for each part in a multipart response (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@multipart-cleanup-2
Patch Set: Created 4 years, 9 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/fetch/MultipartImageResourceParser.cpp
diff --git a/third_party/WebKit/Source/core/fetch/MultipartImageResourceParser.cpp b/third_party/WebKit/Source/core/fetch/MultipartImageResourceParser.cpp
index 4b748fc39a32d677b6556905738784393063b99c..cfbee3c2a14dfe6af7a0ec93294530444d4a5de8 100644
--- a/third_party/WebKit/Source/core/fetch/MultipartImageResourceParser.cpp
+++ b/third_party/WebKit/Source/core/fetch/MultipartImageResourceParser.cpp
@@ -162,12 +162,8 @@ bool MultipartImageResourceParser::parseHeaders()
if (!Platform::current()->parseMultipartHeadersFromBody(m_data.data(), m_data.size(), &response, &end))
return false;
m_data.remove(0, end);
-
- bool isFirstPart = m_isFirstPart;
- m_isFirstPart = false;
// Send the response!
- m_client->onePartInMultipartReceived(response.toResourceResponse(), isFirstPart);
-
+ m_client->onePartInMultipartReceived(response.toResourceResponse());
return true;
}

Powered by Google App Engine
This is Rietveld 408576698