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

Unified Diff: webkit/fileapi/local_file_system_test_helper.cc

Issue 10829147: Make MediaFileUtil run on thread pool. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix for windows Created 8 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
Index: webkit/fileapi/local_file_system_test_helper.cc
diff --git a/webkit/fileapi/local_file_system_test_helper.cc b/webkit/fileapi/local_file_system_test_helper.cc
index f8419c58bb9521caec25e52d65b81467a66a534a..dd50bd6ab9988ba56197214a8114743b0f10d75d 100644
--- a/webkit/fileapi/local_file_system_test_helper.cc
+++ b/webkit/fileapi/local_file_system_test_helper.cc
@@ -10,6 +10,7 @@
#include "googleurl/src/gurl.h"
#include "webkit/fileapi/file_system_context.h"
#include "webkit/fileapi/file_system_operation_context.h"
+#include "webkit/fileapi/file_system_task_runners.h"
#include "webkit/fileapi/file_system_usage_cache.h"
#include "webkit/fileapi/file_system_util.h"
#include "webkit/fileapi/file_util_helper.h"
@@ -68,8 +69,7 @@ void LocalFileSystemTestOriginHelper::SetUp(
new quota::MockSpecialStoragePolicy;
special_storage_policy->SetAllUnlimited(unlimited_quota);
file_system_context_ = new FileSystemContext(
- base::MessageLoopProxy::current(),
- base::MessageLoopProxy::current(),
+ FileSystemTaskRunners::CreateMockTaskRunners(),
special_storage_policy,
quota_manager_proxy,
base_dir,
@@ -78,8 +78,9 @@ void LocalFileSystemTestOriginHelper::SetUp(
if (type_ == kFileSystemTypeTest) {
file_system_context_->RegisterMountPointProvider(
type_,
- new TestMountPointProvider(file_system_context_->file_task_runner(),
- base_dir));
+ new TestMountPointProvider(
+ file_system_context_->task_runners()->file_task_runner(),
+ base_dir));
}
// Prepare the origin's root directory.
« no previous file with comments | « webkit/fileapi/local_file_system_operation.cc ('k') | webkit/fileapi/media/native_media_file_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698