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

Unified Diff: webkit/glue/alt_error_page_resource_fetcher.cc

Issue 155166: The WebURLResponse will be null if the network request fails. So, a null che... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 5 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 | « webkit/glue/alt_404_page_resource_fetcher.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/alt_error_page_resource_fetcher.cc
===================================================================
--- webkit/glue/alt_error_page_resource_fetcher.cc (revision 20031)
+++ webkit/glue/alt_error_page_resource_fetcher.cc (working copy)
@@ -53,7 +53,7 @@
if (!delegate)
return;
- if (response.httpStatusCode() == 200) {
+ if (!response.isNull() && response.httpStatusCode() == 200) {
// We successfully got a response from the alternate error page server, so
// load it.
delegate->LoadNavigationErrorPage(web_frame_, failed_request_,
@@ -64,4 +64,4 @@
}
}
-} // namespace webkit_glue
+} // namespace webkit_glue
« no previous file with comments | « webkit/glue/alt_404_page_resource_fetcher.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698