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

Unified Diff: content/browser/download/download_resource_handler.cc

Issue 9963028: Revert blocking of file: downloads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed api tests. Created 8 years, 9 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
« no previous file with comments | « chrome/test/functional/PYAUTO_TESTS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_resource_handler.cc
diff --git a/content/browser/download/download_resource_handler.cc b/content/browser/download/download_resource_handler.cc
index df82179a18bc0dbc537ab1b9d421455c3ebdaca0..fef110fe7649ac8a3d06247c021146fa90e215bf 100644
--- a/content/browser/download/download_resource_handler.cc
+++ b/content/browser/download/download_resource_handler.cc
@@ -98,8 +98,7 @@ bool DownloadResourceHandler::OnResponseStarted(
<< " request_id = " << request_id;
download_start_time_ = base::TimeTicks::Now();
- if (request_->url().scheme() == "file" ||
- request_->url().scheme() == "data") {
+ if (request_->url().scheme() == "data") {
CallStartedCB(download_id_, net::ERR_DISALLOWED_URL_SCHEME);
return false;
}
« no previous file with comments | « chrome/test/functional/PYAUTO_TESTS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698