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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 18668003: SyncFS: Introduce SyncFileSystemBackend (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index ad4adad6a20bca8485f00033d8f8026f0955a841..d1a1988dab78a7e39767f38773d85b47011b60d6 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -137,6 +137,9 @@
#include "ui/base/resource/resource_bundle.h"
#include "ui/message_center/message_center_util.h"
#include "webkit/browser/fileapi/external_mount_points.h"
+#include "webkit/browser/fileapi/file_system_task_runners.h"
+#include "webkit/browser/fileapi/syncable/syncable_sandbox_mount_point_provider.h"
+#include "webkit/browser/quota/quota_manager.h"
#include "webkit/common/webpreferences.h"
#include "webkit/plugins/plugin_switches.h"
@@ -2305,6 +2308,9 @@ void ChromeContentBrowserClient::GetAdditionalFileSystemMountPointProviders(
const base::FilePath& storage_partition_path,
quota::SpecialStoragePolicy* special_storage_policy,
fileapi::ExternalMountPoints* external_mount_points,
+ quota::QuotaManagerProxy* quota_manager_proxy,
+ fileapi::FileSystemTaskRunners* task_runners,
+ const fileapi::FileSystemOptions& options,
ScopedVector<fileapi::FileSystemMountPointProvider>* additional_providers) {
#if !defined(OS_ANDROID)
base::SequencedWorkerPool* pool = content::BrowserThread::GetBlockingPool();
@@ -2325,6 +2331,14 @@ void ChromeContentBrowserClient::GetAdditionalFileSystemMountPointProviders(
DCHECK(cros_mount_provider->CanHandleType(fileapi::kFileSystemTypeExternal));
additional_providers->push_back(cros_mount_provider);
#endif
+
+ additional_providers->push_back(
+ new sync_file_system::SyncableSandboxMountPointProvider(
+ quota_manager_proxy,
+ task_runners->file_task_runner(),
+ storage_partition_path,
+ options,
+ special_storage_policy));
}
#if defined(OS_POSIX) && !defined(OS_MACOSX)

Powered by Google App Engine
This is Rietveld 408576698