| Index: chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.cc
|
| diff --git a/chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.cc b/chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.cc
|
| index b4c560da1fc7e5a8a4503f3a325274b8bed6dea3..1481f486a21e3569446f4984fbefcf7b01367933 100644
|
| --- a/chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.cc
|
| +++ b/chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.cc
|
| @@ -6,12 +6,14 @@
|
|
|
| #include "base/callback.h"
|
| #include "base/logging.h"
|
| +#include "chrome/browser/sync_file_system/drive_backend/sync_engine_context.h"
|
|
|
| namespace sync_file_system {
|
| namespace drive_backend {
|
|
|
| -RemoteToLocalSyncer::RemoteToLocalSyncer() {
|
| - NOTIMPLEMENTED();
|
| +RemoteToLocalSyncer::RemoteToLocalSyncer(SyncEngineContext* sync_context)
|
| + : sync_context_(sync_context),
|
| + weak_ptr_factory_(this) {
|
| }
|
|
|
| RemoteToLocalSyncer::~RemoteToLocalSyncer() {
|
| @@ -23,5 +25,18 @@ void RemoteToLocalSyncer::Run(const SyncStatusCallback& callback) {
|
| callback.Run(SYNC_STATUS_FAILED);
|
| }
|
|
|
| +drive::DriveServiceInterface* RemoteToLocalSyncer::drive_service() {
|
| + return sync_context_->GetDriveService();
|
| +}
|
| +
|
| +MetadataDatabase* RemoteToLocalSyncer::metadata_database() {
|
| + return sync_context_->GetMetadataDatabase();
|
| +}
|
| +
|
| +RemoteChangeProcessor* RemoteToLocalSyncer::remote_change_processor() {
|
| + DCHECK(sync_context_->GetRemoteChangeProcessor());
|
| + return sync_context_->GetRemoteChangeProcessor();
|
| +}
|
| +
|
| } // namespace drive_backend
|
| } // namespace sync_file_system
|
|
|