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

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

Issue 7066067: Support creating temporary files for sync file operations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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/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 6342cd1c85999cced9811ba66fa0a16854eeaad5..0509eaa34bd0b7dae8ca78d4a6f0b06f5a823eb4 100644
--- a/content/browser/renderer_host/redirect_to_file_resource_handler.cc
+++ b/content/browser/renderer_host/redirect_to_file_resource_handler.cc
@@ -76,6 +76,7 @@ bool RedirectToFileResourceHandler::OnWillStart(int request_id,
*defer = true;
base::FileUtilProxy::CreateTemporary(
BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE),
+ true /* open tmp file for async operations */,
callback_factory_.NewCallback(
&RedirectToFileResourceHandler::DidCreateTemporaryFile));
return true;

Powered by Google App Engine
This is Rietveld 408576698