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

Unified Diff: chrome/browser/sync_file_system/drive_backend_v1/drive_file_sync_service.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
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/local/local_file_change_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync_file_system/drive_backend_v1/drive_file_sync_service.cc
diff --git a/chrome/browser/sync_file_system/drive_backend_v1/drive_file_sync_service.cc b/chrome/browser/sync_file_system/drive_backend_v1/drive_file_sync_service.cc
index 31da33647d35b762f8e2ee807a6a32ab810c17c8..d8fd8a1b1feaaf1fadb1e8139823d1dac14035af 100644
--- a/chrome/browser/sync_file_system/drive_backend_v1/drive_file_sync_service.cc
+++ b/chrome/browser/sync_file_system/drive_backend_v1/drive_file_sync_service.cc
@@ -48,15 +48,6 @@ typedef RemoteFileSyncService::OriginStatusMap OriginStatusMap;
namespace {
const base::FilePath::CharType kTempDirName[] = FILE_PATH_LITERAL("tmp");
-const base::FilePath::CharType kSyncFileSystemDir[] =
- FILE_PATH_LITERAL("Sync FileSystem");
-const base::FilePath::CharType kSyncFileSystemDirDev[] =
- FILE_PATH_LITERAL("Sync FileSystem Dev");
-
-const base::FilePath::CharType* GetSyncFileSystemDir() {
- return IsSyncFSDirectoryOperationEnabled()
- ? kSyncFileSystemDirDev : kSyncFileSystemDir;
-}
void EmptyStatusCallback(SyncStatusCode status) {}
@@ -351,14 +342,14 @@ void DriveFileSyncService::Initialize(
task_manager_ = task_manager.Pass();
- temporary_file_dir_ =
- profile_->GetPath().Append(GetSyncFileSystemDir()).Append(kTempDirName);
+ temporary_file_dir_ = sync_file_system::GetSyncFileSystemDir(
+ profile_->GetPath()).Append(kTempDirName);
api_util_.reset(new drive_backend::APIUtil(profile_, temporary_file_dir_));
api_util_->AddObserver(this);
metadata_store_.reset(new DriveMetadataStore(
- profile_->GetPath().Append(GetSyncFileSystemDir()),
+ GetSyncFileSystemDir(profile_->GetPath()),
content::BrowserThread::GetMessageLoopProxyForThread(
content::BrowserThread::FILE).get()));
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/local/local_file_change_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698