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

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

Issue 10701050: net: Implement canceling of all async operations in FileStream. (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Correct fix for UploadFileElementReader Created 8 years, 3 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/renderer_host/redirect_to_file_resource_handler.cc
===================================================================
--- content/browser/renderer_host/redirect_to_file_resource_handler.cc (revision 157712)
+++ content/browser/renderer_host/redirect_to_file_resource_handler.cc (working copy)
@@ -45,16 +45,6 @@
}
RedirectToFileResourceHandler::~RedirectToFileResourceHandler() {
- // It is possible for |file_stream_| to be NULL if the URLRequest was closed
- // before the temporary file creation finished.
- if (file_stream_.get()) {
- // We require this explicit call to Close since file_stream_ was constructed
- // directly from a PlatformFile.
- // Close() performs file IO. crbug.com/112474.
- base::ThreadRestrictions::ScopedAllowIO allow_io;
- file_stream_->CloseSync();
- file_stream_.reset();
- }
}
bool RedirectToFileResourceHandler::OnResponseStarted(

Powered by Google App Engine
This is Rietveld 408576698