| Index: chrome/browser/sync/profile_sync_service.cc
|
| diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc
|
| index 3135388b8dad8ae28df88fcd3c09234c5a3eef34..85c62a24c32b4237590c1f48beab4b95de9889b0 100644
|
| --- a/chrome/browser/sync/profile_sync_service.cc
|
| +++ b/chrome/browser/sync/profile_sync_service.cc
|
| @@ -2729,3 +2729,10 @@ bool ProfileSyncService::NeedBackup() const {
|
| base::Time ProfileSyncService::GetDeviceBackupTimeForTesting() const {
|
| return device_info_sync_service_->GetLocalDeviceBackupTime();
|
| }
|
| +
|
| +void ProfileSyncService::FlushDirectory() const {
|
| + // backend_initialized_ implies backend_ isn't NULL and the manager exists.
|
| + // If sync is not initialized yet, we fail silently.
|
| + if (backend_initialized_)
|
| + backend_->FlushDirectory();
|
| +}
|
|
|