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

Unified Diff: webkit/tools/test_shell/simple_file_system.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
« no previous file with comments | « webkit/fileapi/webkit_fileapi.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/simple_file_system.cc
diff --git a/webkit/tools/test_shell/simple_file_system.cc b/webkit/tools/test_shell/simple_file_system.cc
index 1400ebd828c3a05f25496e4b7184122ba1528d69..72a752bc114b1b57c127ce076d550724830e5683 100644
--- a/webkit/tools/test_shell/simple_file_system.cc
+++ b/webkit/tools/test_shell/simple_file_system.cc
@@ -21,6 +21,7 @@
#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h"
#include "webkit/blob/blob_storage_controller.h"
+#include "webkit/fileapi/file_system_task_runners.h"
#include "webkit/fileapi/file_system_url.h"
#include "webkit/fileapi/file_system_util.h"
#include "webkit/fileapi/mock_file_system_options.h"
@@ -43,9 +44,10 @@ using WebKit::WebVector;
using webkit_blob::BlobData;
using webkit_blob::BlobStorageController;
-using fileapi::FileSystemURL;
using fileapi::FileSystemContext;
using fileapi::FileSystemOperationInterface;
+using fileapi::FileSystemTaskRunners;
+using fileapi::FileSystemURL;
namespace {
MessageLoop* g_io_thread;
@@ -74,8 +76,7 @@ void RegisterBlob(const GURL& blob_url, const FilePath& file_path) {
SimpleFileSystem::SimpleFileSystem() {
if (file_system_dir_.CreateUniqueTempDir()) {
file_system_context_ = new FileSystemContext(
- base::MessageLoopProxy::current(),
- base::MessageLoopProxy::current(),
+ FileSystemTaskRunners::CreateMockTaskRunners(),
NULL /* special storage policy */,
NULL /* quota manager */,
file_system_dir_.path(),
« no previous file with comments | « webkit/fileapi/webkit_fileapi.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698