| Index: sync/internal_api/sync_backup_manager.cc
|
| diff --git a/sync/internal_api/sync_backup_manager.cc b/sync/internal_api/sync_backup_manager.cc
|
| index d421dfd9f1cb39a0685defa07fc346cb65d448ac..91927e717edd121c6dbe47dec1d0d99e0746c389 100644
|
| --- a/sync/internal_api/sync_backup_manager.cc
|
| +++ b/sync/internal_api/sync_backup_manager.cc
|
| @@ -50,17 +50,22 @@ void SyncBackupManager::Init(
|
| report_unrecoverable_error_function,
|
| cancelation_signal);
|
|
|
| + if (!initialized())
|
| + return;
|
| +
|
| GetUserShare()->directory->CollectMetaHandleCounts(
|
| - &status_.num_entries_by_type,
|
| - &status_.num_to_delete_entries_by_type);
|
| + &status_.num_entries_by_type,
|
| + &status_.num_to_delete_entries_by_type);
|
|
|
| HideSyncPreference(PRIORITY_PREFERENCES);
|
| HideSyncPreference(PREFERENCES);
|
| }
|
|
|
| void SyncBackupManager::SaveChanges() {
|
| - NormalizeEntries();
|
| - GetUserShare()->directory->SaveChanges();
|
| + if (initialized()) {
|
| + NormalizeEntries();
|
| + GetUserShare()->directory->SaveChanges();
|
| + }
|
| }
|
|
|
| SyncStatus SyncBackupManager::GetDetailedStatus() const {
|
|
|