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

Unified Diff: webkit/fileapi/file_system_test_helper.cc

Issue 9016020: Cleanup FileSystemOperation for preparing for adding FSO-factory method (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 11 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 | « webkit/fileapi/file_system_operation_interface.h ('k') | webkit/fileapi/file_system_url_request_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_system_test_helper.cc
diff --git a/webkit/fileapi/file_system_test_helper.cc b/webkit/fileapi/file_system_test_helper.cc
index d542d10cf8f44d38408b0233f4e4a96454ab943d..4bb40118065b3343118e6fa7a8b18555d9d438e5 100644
--- a/webkit/fileapi/file_system_test_helper.cc
+++ b/webkit/fileapi/file_system_test_helper.cc
@@ -8,6 +8,7 @@
#include "base/message_loop.h"
#include "base/message_loop_proxy.h"
#include "googleurl/src/gurl.h"
+#include "webkit/fileapi/file_system_callback_dispatcher.h"
#include "webkit/fileapi/file_system_context.h"
#include "webkit/fileapi/file_system_operation.h"
#include "webkit/fileapi/file_system_operation_context.h"
@@ -50,7 +51,7 @@ void FileSystemTestOriginHelper::SetUp(
// Prepare the origin's root directory.
file_system_context_->GetMountPointProvider(type_)->
- ValidateFileSystemRootAndGetPathOnFileThread(
+ GetFileSystemRootPathOnFileThread(
origin_, type_, FilePath(), true /* create */);
// Initialize the usage cache file.
@@ -81,7 +82,7 @@ void FileSystemTestOriginHelper::SetUp(
// Prepare the origin's root directory.
file_system_context_->GetMountPointProvider(type_)->
- ValidateFileSystemRootAndGetPathOnFileThread(
+ GetFileSystemRootPathOnFileThread(
origin_, type_, FilePath(), true /* create */);
// Initialize the usage cache file. This code assumes that we're either using
@@ -98,7 +99,7 @@ void FileSystemTestOriginHelper::TearDown() {
FilePath FileSystemTestOriginHelper::GetOriginRootPath() const {
return file_system_context_->GetMountPointProvider(type_)->
- ValidateFileSystemRootAndGetPathOnFileThread(
+ GetFileSystemRootPathOnFileThread(
origin_, type_, FilePath(), false);
}
@@ -145,7 +146,8 @@ FileSystemOperation* FileSystemTestOriginHelper::NewOperation(
DCHECK(file_system_context_.get());
DCHECK(file_util_);
FileSystemOperation* operation =
- new FileSystemOperation(callback_dispatcher,
+ new FileSystemOperation(scoped_ptr<FileSystemCallbackDispatcher>(
+ callback_dispatcher),
base::MessageLoopProxy::current(),
file_system_context_.get());
operation->set_override_file_util(file_util_);
« no previous file with comments | « webkit/fileapi/file_system_operation_interface.h ('k') | webkit/fileapi/file_system_url_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698