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

Unified Diff: content/public/test/test_file_system_context.cc

Issue 1159623009: content: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test build fix. Created 5 years, 6 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 | « content/public/test/sandbox_file_system_test_helper.cc ('k') | content/public/test/test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/test_file_system_context.cc
diff --git a/content/public/test/test_file_system_context.cc b/content/public/test/test_file_system_context.cc
index d44765be1f6868abff4e7f56dad35436f91e6977..7f602507ddd173a58ba7c9c54b81f87ea1848718 100644
--- a/content/public/test/test_file_system_context.cc
+++ b/content/public/test/test_file_system_context.cc
@@ -5,6 +5,7 @@
#include "content/public/test/test_file_system_context.h"
#include "base/memory/scoped_vector.h"
+#include "base/thread_task_runner_handle.h"
#include "content/public/test/mock_special_storage_policy.h"
#include "content/public/test/test_file_system_backend.h"
#include "content/public/test/test_file_system_options.h"
@@ -19,7 +20,7 @@ storage::FileSystemContext* CreateFileSystemContextForTesting(
const base::FilePath& base_path) {
ScopedVector<storage::FileSystemBackend> additional_providers;
additional_providers.push_back(new TestFileSystemBackend(
- base::MessageLoopProxy::current().get(), base_path));
+ base::ThreadTaskRunnerHandle::Get().get(), base_path));
return CreateFileSystemContextWithAdditionalProvidersForTesting(
quota_manager_proxy, additional_providers.Pass(), base_path);
}
@@ -30,14 +31,12 @@ CreateFileSystemContextWithAdditionalProvidersForTesting(
ScopedVector<storage::FileSystemBackend> additional_providers,
const base::FilePath& base_path) {
return new storage::FileSystemContext(
- base::MessageLoopProxy::current().get(),
- base::MessageLoopProxy::current().get(),
+ base::ThreadTaskRunnerHandle::Get().get(),
+ base::ThreadTaskRunnerHandle::Get().get(),
storage::ExternalMountPoints::CreateRefCounted().get(),
make_scoped_refptr(new MockSpecialStoragePolicy()).get(),
- quota_manager_proxy,
- additional_providers.Pass(),
- std::vector<storage::URLRequestAutoMountHandler>(),
- base_path,
+ quota_manager_proxy, additional_providers.Pass(),
+ std::vector<storage::URLRequestAutoMountHandler>(), base_path,
CreateAllowFileAccessOptions());
}
@@ -47,15 +46,12 @@ storage::FileSystemContext* CreateFileSystemContextWithAutoMountersForTesting(
const std::vector<storage::URLRequestAutoMountHandler>& auto_mounters,
const base::FilePath& base_path) {
return new storage::FileSystemContext(
- base::MessageLoopProxy::current().get(),
- base::MessageLoopProxy::current().get(),
+ base::ThreadTaskRunnerHandle::Get().get(),
+ base::ThreadTaskRunnerHandle::Get().get(),
storage::ExternalMountPoints::CreateRefCounted().get(),
make_scoped_refptr(new MockSpecialStoragePolicy()).get(),
- quota_manager_proxy,
- additional_providers.Pass(),
- auto_mounters,
- base_path,
- CreateAllowFileAccessOptions());
+ quota_manager_proxy, additional_providers.Pass(), auto_mounters,
+ base_path, CreateAllowFileAccessOptions());
}
storage::FileSystemContext* CreateIncognitoFileSystemContextForTesting(
@@ -63,14 +59,12 @@ storage::FileSystemContext* CreateIncognitoFileSystemContextForTesting(
const base::FilePath& base_path) {
ScopedVector<storage::FileSystemBackend> additional_providers;
return new storage::FileSystemContext(
- base::MessageLoopProxy::current().get(),
- base::MessageLoopProxy::current().get(),
+ base::ThreadTaskRunnerHandle::Get().get(),
+ base::ThreadTaskRunnerHandle::Get().get(),
storage::ExternalMountPoints::CreateRefCounted().get(),
make_scoped_refptr(new MockSpecialStoragePolicy()).get(),
- quota_manager_proxy,
- additional_providers.Pass(),
- std::vector<storage::URLRequestAutoMountHandler>(),
- base_path,
+ quota_manager_proxy, additional_providers.Pass(),
+ std::vector<storage::URLRequestAutoMountHandler>(), base_path,
CreateIncognitoFileSystemOptions());
}
« no previous file with comments | « content/public/test/sandbox_file_system_test_helper.cc ('k') | content/public/test/test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698