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 5a380418d28d011a9ddcdc29c4ad4f6b2ec163bb..5379a7bfb78bedd42e4281ee30f3c142432758d8 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/files/file_path.h" |
#include "base/logging.h" |
#include "base/memory/ptr_util.h" |
@@ -347,7 +348,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 |