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

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

Issue 61203003: [SyncFS] Wire up LocalChangeProcessor to SyncTask (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/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

Powered by Google App Engine
This is Rietveld 408576698