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

Unified Diff: webkit/browser/fileapi/sandbox_file_system_backend.cc

Issue 19632004: FileAPI: Add Initialize() function to FileSystemBackend (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/sandbox_file_system_backend.cc
diff --git a/webkit/browser/fileapi/sandbox_file_system_backend.cc b/webkit/browser/fileapi/sandbox_file_system_backend.cc
index 1c034c9021c5725b7ae89a5201f3897673ce36f2..b74c53a4a19cd3e5978c68f4aa9c4ad695d38bfc 100644
--- a/webkit/browser/fileapi/sandbox_file_system_backend.cc
+++ b/webkit/browser/fileapi/sandbox_file_system_backend.cc
@@ -142,6 +142,19 @@ SandboxFileSystemBackend::SandboxFileSystemBackend(
!CommandLine::ForCurrentProcess()->HasSwitch(
kDisableUsageTracking)),
weak_factory_(this) {
+}
+
+SandboxFileSystemBackend::~SandboxFileSystemBackend() {
+}
+
+bool SandboxFileSystemBackend::CanHandleType(FileSystemType type) const {
+ return type == kFileSystemTypeTemporary ||
+ type == kFileSystemTypePersistent ||
+ type == kFileSystemTypeSyncable ||
+ type == kFileSystemTypeSyncableForInternalSync;
+}
+
+void SandboxFileSystemBackend::Initialize(const FileSystemContext* context) {
// Set quota observers.
if (enable_usage_tracking_) {
update_observers_ = update_observers_.AddObserver(
@@ -163,16 +176,6 @@ SandboxFileSystemBackend::SandboxFileSystemBackend(
}
}
-SandboxFileSystemBackend::~SandboxFileSystemBackend() {
-}
-
-bool SandboxFileSystemBackend::CanHandleType(FileSystemType type) const {
- return type == kFileSystemTypeTemporary ||
- type == kFileSystemTypePersistent ||
- type == kFileSystemTypeSyncable ||
- type == kFileSystemTypeSyncableForInternalSync;
-}
-
void SandboxFileSystemBackend::InitializeFileSystem(
const GURL& origin_url,
fileapi::FileSystemType type,

Powered by Google App Engine
This is Rietveld 408576698