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

Unified Diff: content/browser/loader/redirect_to_file_resource_handler.cc

Issue 1164823002: Remove URLRequestStatus mutators and introduce FromError. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
Index: content/browser/loader/redirect_to_file_resource_handler.cc
diff --git a/content/browser/loader/redirect_to_file_resource_handler.cc b/content/browser/loader/redirect_to_file_resource_handler.cc
index 6f402135c883775bfa0670b64db8e1dd5b4fce30..e87a23bf916f1650a248eeab766ef08b3ef5f593 100644
--- a/content/browser/loader/redirect_to_file_resource_handler.cc
+++ b/content/browser/loader/redirect_to_file_resource_handler.cc
@@ -281,8 +281,8 @@ void RedirectToFileResourceHandler::DidWriteToFile(int result) {
if (completed_during_write_ && completed_status_.is_success()) {
// If the request successfully completed mid-write, but the write failed,
// convert the status to a failure for downstream.
- completed_status_.set_status(net::URLRequestStatus::CANCELED);
- completed_status_.set_error(net::ERR_FAILED);
+ completed_status_ = net::URLRequestStatus(net::URLRequestStatus::CANCELED,
+ net::ERR_FAILED);
}
if (!completed_during_write_)
controller()->CancelWithError(net::ERR_FAILED);

Powered by Google App Engine
This is Rietveld 408576698