Index: content/browser/fileapi/copy_or_move_file_validator_unittest.cc |
diff --git a/content/browser/fileapi/copy_or_move_file_validator_unittest.cc b/content/browser/fileapi/copy_or_move_file_validator_unittest.cc |
index f9b8d1506f458310991d065652838626650dc46d..c07db9db006b61b72db6afa9879df4a8a3f2ce44 100644 |
--- a/content/browser/fileapi/copy_or_move_file_validator_unittest.cc |
+++ b/content/browser/fileapi/copy_or_move_file_validator_unittest.cc |
@@ -6,7 +6,10 @@ |
#include "base/bind.h" |
#include "base/files/file_path.h" |
#include "base/files/scoped_temp_dir.h" |
+#include "base/location.h" |
#include "base/run_loop.h" |
+#include "base/single_thread_task_runner.h" |
+#include "base/thread_task_runner_handle.h" |
#include "content/public/test/async_file_test_helper.h" |
#include "content/public/test/mock_special_storage_policy.h" |
#include "content/public/test/test_file_system_backend.h" |
@@ -221,7 +224,7 @@ class TestCopyOrMoveFileValidatorFactory |
void StartPreWriteValidation( |
const ResultCallback& result_callback) override { |
// Post the result since a real validator must do work asynchronously. |
- base::MessageLoop::current()->PostTask( |
+ base::ThreadTaskRunnerHandle::Get()->PostTask( |
FROM_HERE, base::Bind(result_callback, result_)); |
} |
@@ -229,7 +232,7 @@ class TestCopyOrMoveFileValidatorFactory |
const base::FilePath& dest_platform_path, |
const ResultCallback& result_callback) override { |
// Post the result since a real validator must do work asynchronously. |
- base::MessageLoop::current()->PostTask( |
+ base::ThreadTaskRunnerHandle::Get()->PostTask( |
FROM_HERE, base::Bind(result_callback, write_result_)); |
} |