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

Unified Diff: chrome/browser/sync_file_system/drive_backend/sync_engine.cc

Issue 59193003: [SyncFS] Add RemoteToLocalSyncer skeleton (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month 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/drive_backend/sync_engine.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/sync_engine.cc b/chrome/browser/sync_file_system/drive_backend/sync_engine.cc
index c857e96b8e017e54526642dd6d621ef8745d9966..362e9fcf104f859fa7db13c5a20f085b342ddcb6 100644
--- a/chrome/browser/sync_file_system/drive_backend/sync_engine.cc
+++ b/chrome/browser/sync_file_system/drive_backend/sync_engine.cc
@@ -119,7 +119,8 @@ void SyncEngine::UninstallOrigin(
void SyncEngine::ProcessRemoteChange(
const SyncFileCallback& callback) {
- RemoteToLocalSyncer* syncer = new RemoteToLocalSyncer;
+ RemoteToLocalSyncer* syncer = new RemoteToLocalSyncer(
+ this, RemoteToLocalSyncer::PRIORITY_NORMAL);
kinuko 2013/11/05 13:36:13 When do we use PRIORITY_LOW?
tzik 2013/11/06 04:56:08 Added a comment to RemoteToLocalSyncer. I'll mark
task_manager_->ScheduleSyncTask(
scoped_ptr<SyncTask>(syncer),
base::Bind(&SyncEngine::DidProcessRemoteChange,
@@ -201,7 +202,7 @@ void SyncEngine::ApplyLocalChange(
const SyncFileMetadata& local_file_metadata,
const fileapi::FileSystemURL& url,
const SyncStatusCallback& callback) {
- LocalToRemoteSyncer* syncer = new LocalToRemoteSyncer;
+ LocalToRemoteSyncer* syncer = new LocalToRemoteSyncer(this);
task_manager_->ScheduleSyncTask(
scoped_ptr<SyncTask>(syncer),
base::Bind(&SyncEngine::DidApplyLocalChange,
@@ -269,6 +270,10 @@ MetadataDatabase* SyncEngine::GetMetadataDatabase() {
return metadata_database_.get();
}
+RemoteChangeProcessor* SyncEngine::GetRemoteChangeProcessor() {
+ return remote_change_processor_;
+}
+
void SyncEngine::DoDisableApp(const std::string& app_id,
const SyncStatusCallback& callback) {
NOTIMPLEMENTED();

Powered by Google App Engine
This is Rietveld 408576698