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

Unified Diff: webkit/browser/fileapi/syncable/syncable_file_system_operation.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: webkit/browser/fileapi/syncable/syncable_file_system_operation.cc
diff --git a/webkit/browser/fileapi/syncable/syncable_file_system_operation.cc b/webkit/browser/fileapi/syncable/syncable_file_system_operation.cc
index b2568132aee4caf5f8b429f52b77f440f3b3b7ab..88d2c69597882168678114d3c126420c43d9b37f 100644
--- a/webkit/browser/fileapi/syncable/syncable_file_system_operation.cc
+++ b/webkit/browser/fileapi/syncable/syncable_file_system_operation.cc
@@ -14,6 +14,7 @@
#include "webkit/browser/fileapi/syncable/local_file_sync_context.h"
#include "webkit/browser/fileapi/syncable/syncable_file_operation_runner.h"
#include "webkit/browser/fileapi/syncable/syncable_file_system_util.h"
+#include "webkit/browser/fileapi/syncable/syncable_sandbox_mount_point_provider.h"
#include "webkit/common/blob/shareable_file_reference.h"
using fileapi::FileSystemURL;
@@ -318,13 +319,16 @@ SyncableFileSystemOperation::SyncableFileSystemOperation(
operation_context.Pass()),
url_(url) {
DCHECK(file_system_context);
- if (!file_system_context->sync_context()) {
+ SyncableSandboxMountPointProvider* provider =
+ SyncableSandboxMountPointProvider::GetProvider(file_system_context);
+ DCHECK(provider);
+ if (!provider->sync_context()) {
// Syncable FileSystem is opened in a file system context which doesn't
// support (or is not initialized for) the API.
// Returning here to leave operation_runner_ as NULL.
return;
}
- operation_runner_ = file_system_context->sync_context()->operation_runner();
+ operation_runner_ = provider->sync_context()->operation_runner();
is_directory_operation_enabled_ = IsSyncFSDirectoryOperationEnabled();
}

Powered by Google App Engine
This is Rietveld 408576698