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

Unified Diff: content/browser/renderer_host/resource_dispatcher_host.cc

Issue 8117003: Return a specific error code for unknown URL schemes. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: rebase Created 9 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
« no previous file with comments | « no previous file | content/browser/renderer_host/resource_dispatcher_host_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/resource_dispatcher_host.cc
diff --git a/content/browser/renderer_host/resource_dispatcher_host.cc b/content/browser/renderer_host/resource_dispatcher_host.cc
index 4a6a0577603bcc8e7fc368433a0248a0c232656f..ac31353b03d09c62fa8868cc8fc83b7b8874e5fa 100644
--- a/content/browser/renderer_host/resource_dispatcher_host.cc
+++ b/content/browser/renderer_host/resource_dispatcher_host.cc
@@ -388,7 +388,8 @@ bool ResourceDispatcherHost::HandleExternalProtocol(
handler->OnResponseCompleted(
request_id,
- net::URLRequestStatus(net::URLRequestStatus::FAILED, net::ERR_ABORTED),
+ net::URLRequestStatus(net::URLRequestStatus::FAILED,
+ net::ERR_UNKNOWN_URL_SCHEME),
std::string()); // No security info necessary.
return true;
}
« no previous file with comments | « no previous file | content/browser/renderer_host/resource_dispatcher_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698