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

Unified Diff: content/child/web_url_loader_impl.cc

Issue 2932453002: PlzNavigate: Release StreamHandle. (Closed)
Patch Set: Experiment: Use a RenderFrameObserver. Created 3 years, 6 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: 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

Powered by Google App Engine
This is Rietveld 408576698