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..fb8ecbd4fa713ed645dd0ae7e35c7d8ffb84dbfb 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,7 @@ void SyncEngine::UninstallOrigin( |
void SyncEngine::ProcessRemoteChange( |
const SyncFileCallback& callback) { |
- RemoteToLocalSyncer* syncer = new RemoteToLocalSyncer; |
+ RemoteToLocalSyncer* syncer = new RemoteToLocalSyncer(this); |
task_manager_->ScheduleSyncTask( |
scoped_ptr<SyncTask>(syncer), |
base::Bind(&SyncEngine::DidProcessRemoteChange, |
@@ -201,7 +201,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 +269,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(); |