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

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

Issue 322813002: [SyncFS] Drop test only un-thread-safe getters from SyncEngine (4) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months 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 33652e6def73fde61d61526a79053d4c77fafac4..f0f3e6e05fbfc4ffb132cac5d91d328e18ef2875 100644
--- a/chrome/browser/sync_file_system/drive_backend/sync_engine.cc
+++ b/chrome/browser/sync_file_system/drive_backend/sync_engine.cc
@@ -237,7 +237,7 @@ void SyncEngine::AppendDependsOnFactories(
SyncEngine::~SyncEngine() {
net::NetworkChangeNotifier::RemoveNetworkChangeObserver(this);
- GetDriveService()->RemoveObserver(this);
+ drive_service_->RemoveObserver(this);
if (notification_manager_)
notification_manager_->RemoveObserver(this);
@@ -290,7 +290,7 @@ void SyncEngine::Initialize(const base::FilePath& base_dir,
if (notification_manager_)
notification_manager_->AddObserver(this);
- GetDriveService()->AddObserver(this);
+ drive_service_->AddObserver(this);
net::NetworkChangeNotifier::AddNetworkChangeObserver(this);
}
@@ -509,14 +509,6 @@ void SyncEngine::OnNetworkChanged(
type));
}
-drive::DriveServiceInterface* SyncEngine::GetDriveService() {
- return drive_service_.get();
-}
-
-drive::DriveUploaderInterface* SyncEngine::GetDriveUploader() {
- return drive_uploader_.get();
-}
-
SyncEngine::SyncEngine(
scoped_ptr<drive::DriveServiceInterface> drive_service,
scoped_ptr<drive::DriveUploaderInterface> drive_uploader,

Powered by Google App Engine
This is Rietveld 408576698