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(); |