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

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

Issue 287002: Fix crash bug when attempting to download a url with unsupported scheme, e.g.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/resource_dispatcher_host.cc
===================================================================
--- chrome/browser/renderer_host/resource_dispatcher_host.cc (revision 28527)
+++ chrome/browser/renderer_host/resource_dispatcher_host.cc (working copy)
@@ -729,9 +729,10 @@
receiver_);
}
- bool known_proto = URLRequest::IsHandledURL(url);
- if (!known_proto) {
- CHECK(false);
+ if (!URLRequest::IsHandledURL(url)) {
+ LOG(INFO) << "Download request for unsupported protocol: " <<
+ url.possibly_invalid_spec();
+ return;
}
request->set_method("GET");
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698