Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / sync_file_system / syncable_file_system_util.h
index 7e28607..35512ca 100644 (file)
@@ -115,6 +115,18 @@ class ScopedEnableSyncFSDirectoryOperation {
   DISALLOW_COPY_AND_ASSIGN(ScopedEnableSyncFSDirectoryOperation);
 };
 
+// Enables V2 backend for syncable filesystems temporarily for testing.
+class ScopedEnableSyncFSV2 {
+ public:
+  ScopedEnableSyncFSV2();
+  ~ScopedEnableSyncFSV2();
+
+ private:
+  bool was_enabled_;
+
+  DISALLOW_COPY_AND_ASSIGN(ScopedEnableSyncFSV2);
+};
+
 // Posts |callback| to the current thread.
 void RunSoon(const tracked_objects::Location& from_here,
              const base::Closure& callback);