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

Unified Diff: content/browser/fileapi/browser_file_system_helper.cc

Issue 14096022: Make MountPointProvider pluggable from outside webkit/fileapi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix etc 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: content/browser/fileapi/browser_file_system_helper.cc
diff --git a/content/browser/fileapi/browser_file_system_helper.cc b/content/browser/fileapi/browser_file_system_helper.cc
index 485d96afcba2679de90537a0c45e218ab5f5f2d9..a27371271570af3e211a5527d68b389d5e4608c6 100644
--- a/content/browser/fileapi/browser_file_system_helper.cc
+++ b/content/browser/fileapi/browser_file_system_helper.cc
@@ -47,10 +47,11 @@ FileSystemOptions CreateBrowserFileSystemOptions(bool is_incognito) {
} // namespace
scoped_refptr<fileapi::FileSystemContext> CreateFileSystemContext(
- const base::FilePath& profile_path, bool is_incognito,
- fileapi::ExternalMountPoints* external_mount_points,
- quota::SpecialStoragePolicy* special_storage_policy,
- quota::QuotaManagerProxy* quota_manager_proxy) {
+ const base::FilePath& profile_path,
+ bool is_incognito,
+ fileapi::ExternalMountPoints* external_mount_points,
+ quota::SpecialStoragePolicy* special_storage_policy,
+ quota::QuotaManagerProxy* quota_manager_proxy) {
base::SequencedWorkerPool* pool = BrowserThread::GetBlockingPool();
base::SequencedWorkerPool::SequenceToken media_sequence_token =
pool->GetNamedSequenceToken(fileapi::kMediaTaskRunnerName);
@@ -61,11 +62,14 @@ scoped_refptr<fileapi::FileSystemContext> CreateFileSystemContext(
BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE),
pool->GetSequencedTaskRunner(media_sequence_token)));
+ // Setting up additional mount point providers.
+ ScopedVector<fileapi::FileSystemMountPointProvider> additional_providers;
return new fileapi::FileSystemContext(
task_runners.Pass(),
external_mount_points,
special_storage_policy,
quota_manager_proxy,
+ ScopedVector<fileapi::FileSystemMountPointProvider>(),
profile_path,
CreateBrowserFileSystemOptions(is_incognito));
}
« no previous file with comments | « chrome/browser/chromeos/drive/drive_file_system_util_unittest.cc ('k') | content/browser/fileapi/fileapi_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698