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

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

Issue 23578026: Use SNAPSHOT sync mode for LocalSync (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased on thread_bundle fix Created 7 years, 3 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/sync_file_system/syncable_file_system_util.cc
diff --git a/chrome/browser/sync_file_system/syncable_file_system_util.cc b/chrome/browser/sync_file_system/syncable_file_system_util.cc
index a6b25501fc065c0fb8dc0f8e009277146dee79cd..d4338e8dd730cda7f9f2b98dbcffca74ed460a91 100644
--- a/chrome/browser/sync_file_system/syncable_file_system_util.cc
+++ b/chrome/browser/sync_file_system/syncable_file_system_util.cc
@@ -28,6 +28,11 @@ const char kEnableSyncFSDirectoryOperation[] =
const char kSyncableMountName[] = "syncfs";
const char kSyncableMountNameForInternalSync[] = "syncfs-internal";
+const base::FilePath::CharType kSyncFileSystemDir[] =
+ FILE_PATH_LITERAL("Sync FileSystem");
+const base::FilePath::CharType kSyncFileSystemDirDev[] =
+ FILE_PATH_LITERAL("Sync FileSystem Dev");
+
bool is_directory_operation_enabled = false;
} // namespace
@@ -107,6 +112,12 @@ bool IsSyncFSDirectoryOperationEnabled() {
kEnableSyncFSDirectoryOperation);
}
+base::FilePath GetSyncFileSystemDir(const base::FilePath& profile_base_dir) {
+ return profile_base_dir.Append(
+ IsSyncFSDirectoryOperationEnabled() ? kSyncFileSystemDirDev
+ : kSyncFileSystemDir);
+}
+
ScopedEnableSyncFSDirectoryOperation::ScopedEnableSyncFSDirectoryOperation() {
was_enabled_ = IsSyncFSDirectoryOperationEnabled();
SetEnableSyncFSDirectoryOperation(true);

Powered by Google App Engine
This is Rietveld 408576698