diff options
author | tzik@chromium.org <tzik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-07 03:50:10 +0000 |
---|---|---|
committer | tzik@chromium.org <tzik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-07 03:50:10 +0000 |
commit | dc57ec8f32abfe97c712cffbfed17be1f6e5f1ac (patch) | |
tree | ff8971f5a4649c3229143a76598115fce1c2b4b3 /webkit/tools | |
parent | 6bb275c2204bee6abb89b9a6fc363912e19977c4 (diff) | |
download | chromium_src-dc57ec8f32abfe97c712cffbfed17be1f6e5f1ac.zip chromium_src-dc57ec8f32abfe97c712cffbfed17be1f6e5f1ac.tar.gz chromium_src-dc57ec8f32abfe97c712cffbfed17be1f6e5f1ac.tar.bz2 |
Move {Native,Device}MediaFileUtil from FILE thread to SequencedWorkerPool to avoid it blocks other I/O.
BUG=139187
Review URL: https://chromiumcodereview.appspot.com/10829147
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150252 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools')
-rw-r--r-- | webkit/tools/test_shell/simple_file_system.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/webkit/tools/test_shell/simple_file_system.cc b/webkit/tools/test_shell/simple_file_system.cc index 1400ebd..72a752b 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(), |