Index: content/child/web_url_loader_impl.cc |
diff --git a/content/child/web_url_loader_impl.cc b/content/child/web_url_loader_impl.cc |
index acd699d37d54cedb4f76fb1e7e756eaa2130948e..ab0411e398e03a0fd8d8c2d63f0072269960cd5f 100644 |
--- a/content/child/web_url_loader_impl.cc |
+++ b/content/child/web_url_loader_impl.cc |
@@ -13,6 +13,7 @@ |
#include <vector> |
#include "base/bind.h" |
+#include "base/callback.h" |
#include "base/debug/dump_without_crashing.h" |
#include "base/files/file_path.h" |
#include "base/logging.h" |
@@ -348,7 +349,10 @@ void SetSecurityStyleAndDetails(const GURL& url, |
} // namespace |
StreamOverrideParameters::StreamOverrideParameters() {} |
-StreamOverrideParameters::~StreamOverrideParameters() {} |
+StreamOverrideParameters::~StreamOverrideParameters() { |
+ if (on_delete) |
+ std::move(on_delete).Run(stream_url); |
+} |
// This inner class exists since the WebURLLoader may be deleted while inside a |
// call to WebURLLoaderClient. Refcounting is to keep the context from being |