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

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

Issue 3131026: Moving file_system_proxy to base/ and changing it to work with MessageLoopPro... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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 | « chrome/browser/file_system_proxy.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/redirect_to_file_resource_handler.cc
===================================================================
--- chrome/browser/renderer_host/redirect_to_file_resource_handler.cc (revision 56780)
+++ chrome/browser/renderer_host/redirect_to_file_resource_handler.cc (working copy)
@@ -5,10 +5,10 @@
#include "chrome/browser/renderer_host/redirect_to_file_resource_handler.h"
#include "base/file_util.h"
+#include "base/file_util_proxy.h"
#include "base/logging.h"
#include "base/platform_file.h"
#include "base/task.h"
-#include "chrome/browser/file_system_proxy.h"
#include "chrome/browser/renderer_host/resource_dispatcher_host.h"
#include "chrome/common/resource_response.h"
#include "net/base/file_stream.h"
@@ -70,7 +70,8 @@
// TODO(darin): This is sub-optimal. We should not delay starting the
// network request like this.
*defer = true;
- FileSystemProxy::CreateTemporary(
+ base::FileUtilProxy::CreateTemporary(
+ ChromeThread::GetMessageLoopProxyForThread(ChromeThread::FILE),
callback_factory_.NewCallback(
&RedirectToFileResourceHandler::DidCreateTemporaryFile));
return true;
@@ -142,7 +143,9 @@
file_stream_->Close();
file_stream_.reset();
- FileSystemProxy::Delete(file_path_, NULL);
+ base::FileUtilProxy::Delete(
+ ChromeThread::GetMessageLoopProxyForThread(ChromeThread::FILE),
+ file_path_, NULL);
}
RedirectToFileResourceHandler::~RedirectToFileResourceHandler() {
« no previous file with comments | « chrome/browser/file_system_proxy.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698