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

Unified Diff: Source/modules/serviceworkers/Body.cpp

Issue 562413003: Request construction spec changes to use the 'used' flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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: Source/modules/serviceworkers/Body.cpp
diff --git a/Source/modules/serviceworkers/Body.cpp b/Source/modules/serviceworkers/Body.cpp
index cd4088d1de1a9be07a2afe53363835d8d833a604..c2fb2eee6aa436c305bc638a26cf4ac315c01144 100644
--- a/Source/modules/serviceworkers/Body.cpp
+++ b/Source/modules/serviceworkers/Body.cpp
@@ -97,6 +97,11 @@ bool Body::bodyUsed() const
return m_bodyUsed;
}
+void Body::setUsed()
+{
+ m_bodyUsed = true;
+}
+
void Body::stop()
{
// Canceling the load will call didFail which will remove the resolver.

Powered by Google App Engine
This is Rietveld 408576698