diff options
Diffstat (limited to 'chrome/browser/chromeos/drive/drive_sync_client.cc')
-rw-r--r-- | chrome/browser/chromeos/drive/drive_sync_client.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/chromeos/drive/drive_sync_client.cc b/chrome/browser/chromeos/drive/drive_sync_client.cc index a179235..7cd90fa 100644 --- a/chrome/browser/chromeos/drive/drive_sync_client.cc +++ b/chrome/browser/chromeos/drive/drive_sync_client.cc @@ -100,8 +100,8 @@ void DriveSyncClient::Initialize() { net::NetworkChangeNotifier::AddConnectionTypeObserver(this); registrar_->Init(profile_->GetPrefs()); - registrar_->Add(prefs::kDisableGData, this); - registrar_->Add(prefs::kDisableGDataOverCellular, this); + registrar_->Add(prefs::kDisableDrive, this); + registrar_->Add(prefs::kDisableDriveOverCellular, this); } void DriveSyncClient::StartProcessingBacklog() { @@ -195,7 +195,7 @@ void DriveSyncClient::DoSyncLoop() { bool DriveSyncClient::ShouldStopSyncLoop() { // Should stop if the drive feature was disabled while running the fetch // loop. - if (profile_->GetPrefs()->GetBoolean(prefs::kDisableGData)) + if (profile_->GetPrefs()->GetBoolean(prefs::kDisableDrive)) return true; // Should stop if the network is not online. @@ -204,7 +204,7 @@ bool DriveSyncClient::ShouldStopSyncLoop() { // Should stop if the current connection is on cellular network, and // fetching is disabled over cellular. - if (profile_->GetPrefs()->GetBoolean(prefs::kDisableGDataOverCellular) && + if (profile_->GetPrefs()->GetBoolean(prefs::kDisableDriveOverCellular) && util::IsConnectionTypeCellular()) return true; |