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

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: Created 8 years, 1 month 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
diff --git a/content/browser/renderer_host/redirect_to_file_resource_handler.cc b/content/browser/renderer_host/redirect_to_file_resource_handler.cc
index 3266331d1b203fa299ee813b483334aec963b2c7..48c1c8550de2b92d57b2a42fdb4046c7d5736949 100644
--- a/content/browser/renderer_host/redirect_to_file_resource_handler.cc
+++ b/content/browser/renderer_host/redirect_to_file_resource_handler.cc
@@ -71,16 +71,6 @@ RedirectToFileResourceHandler::RedirectToFileResourceHandler(
}
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