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

Unified Diff: chrome/browser/sync_file_system/syncable_file_system_util.h

Issue 130913013: [SyncFS] Add ScopedEnableSyncFSV2 for testing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/syncable_file_system_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync_file_system/syncable_file_system_util.h
diff --git a/chrome/browser/sync_file_system/syncable_file_system_util.h b/chrome/browser/sync_file_system/syncable_file_system_util.h
index 7e28607f8f8c3ee85f9581b7b8c1575539d1cede..35512ca4f073dcb75281abd230b6e005360dfb40 100644
--- a/chrome/browser/sync_file_system/syncable_file_system_util.h
+++ b/chrome/browser/sync_file_system/syncable_file_system_util.h
@@ -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);
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/syncable_file_system_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698