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

Unified Diff: webkit/fileapi/local_file_system_test_helper.cc

Issue 14096022: Make MountPointProvider pluggable from outside webkit/fileapi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 7d4692250703fe255655fec44b0c2da044b922be..2bcf5d01eed62e3a68a9fe81f70e7c4b81fc802f 100644
--- a/webkit/fileapi/local_file_system_test_helper.cc
+++ b/webkit/fileapi/local_file_system_test_helper.cc
@@ -63,14 +63,11 @@ void LocalFileSystemTestOriginHelper::SetUp(
const base::FilePath& base_dir,
bool unlimited_quota,
quota::QuotaManagerProxy* quota_manager_proxy) {
- scoped_refptr<quota::MockSpecialStoragePolicy> special_storage_policy =
- new quota::MockSpecialStoragePolicy;
- special_storage_policy->SetAllUnlimited(unlimited_quota);
file_system_context_ = new FileSystemContext(
FileSystemTaskRunners::CreateMockTaskRunners(),
- ExternalMountPoints::CreateRefCounted().get(),
- special_storage_policy,
quota_manager_proxy,
+ ScopedVector<FileSystemMountPointProvider>(),
+ std::vector<MountPoints*>(),
base_dir,
CreateAllowFileAccessOptions());
@@ -173,7 +170,7 @@ FileSystemUsageCache* LocalFileSystemTestOriginHelper::usage_cache() {
void LocalFileSystemTestOriginHelper::SetUpFileUtil() {
DCHECK(file_system_context_);
if (type_ == kFileSystemTypeTest) {
- file_system_context_->RegisterMountPointProvider(
+ file_system_context_->RegisterMountPointProviderForTesting(
type_,
new TestMountPointProvider(
file_system_context_->task_runners()->file_task_runner(),

Powered by Google App Engine
This is Rietveld 408576698