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

Unified Diff: content/browser/loader/navigation_resource_handler.cc

Issue 1485693002: PlzNavigate: make StreamPrivate API work (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@downloads-fix
Patch Set: Created 5 years, 1 month 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/browser/loader/navigation_resource_handler.cc
diff --git a/content/browser/loader/navigation_resource_handler.cc b/content/browser/loader/navigation_resource_handler.cc
index 94e046dbf0c74bf8044e6cd93484c3cab38563fa..31667c7c29a66975d1ee350473b2c38313ebf042 100644
--- a/content/browser/loader/navigation_resource_handler.cc
+++ b/content/browser/loader/navigation_resource_handler.cc
@@ -22,8 +22,7 @@ namespace content {
NavigationResourceHandler::NavigationResourceHandler(
net::URLRequest* request,
NavigationURLLoaderImplCore* core)
- : ResourceHandler(request),
- core_(core) {
+ : ResourceHandler(request), core_(core) {
core_->set_resource_handler(this);
writer_.set_immediate_mode(true);
}
@@ -76,7 +75,7 @@ bool NavigationResourceHandler::OnResponseStarted(ResourceResponse* response,
// TODO(davidben): Move the dispatch out of MimeTypeResourceHandler. Perhaps
// all the way to the UI thread. Downloads, user certificates, etc., should be
// dispatched at the navigation layer.
- if (info->IsDownload() || info->is_stream())
+ if (info->IsDownload())
return true;
StreamContext* stream_context =

Powered by Google App Engine
This is Rietveld 408576698