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

Unified Diff: net/url_request/url_request_file_dir_job.cc

Issue 1239993004: Fix all failed and canceled URLRequestStatuses without errors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix more failures Created 5 years, 4 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 | « mojo/services/network/url_loader_impl_apptest.cc ('k') | net/url_request/url_request_status.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_file_dir_job.cc
diff --git a/net/url_request/url_request_file_dir_job.cc b/net/url_request/url_request_file_dir_job.cc
index ce6ef75cfb894194f33134d4bc1cc17a8f887e75..64597d569e78bc752fce398d983ac6685d635718 100644
--- a/net/url_request/url_request_file_dir_job.cc
+++ b/net/url_request/url_request_file_dir_job.cc
@@ -162,7 +162,7 @@ void URLRequestFileDirJob::CompleteRead() {
} else {
NOTREACHED();
// TODO: Better error code.
- NotifyDone(URLRequestStatus(URLRequestStatus::FAILED, 0));
+ NotifyDone(URLRequestStatus::FromError(ERR_FAILED));
}
}
}
« no previous file with comments | « mojo/services/network/url_loader_impl_apptest.cc ('k') | net/url_request/url_request_status.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698