Chromium Code Reviews| 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 6375c3448ddd62828392a5a0aca4d5e7f39352de..2aeeb649bc17918a10feaab7de06becb3374b692 100644 |
| --- a/chrome/browser/sync/profile_sync_service.cc |
| +++ b/chrome/browser/sync/profile_sync_service.cc |
| @@ -2767,3 +2767,9 @@ bool ProfileSyncService::NeedBackup() const { |
| base::Time ProfileSyncService::GetDeviceBackupTimeForTesting() const { |
| return backend_->GetSyncedDeviceTracker()->GetLocalDeviceBackupTime(); |
| } |
| + |
| +void ProfileSyncService::FlushDirectory() const { |
| + // Make sure backend_ isn't NULL and that the manager exists. |
|
Nicolas Zea
2014/09/22 17:27:46
nit: clarify in comment how that relates to backen
|
| + if (backend_initialized_) |
| + backend_->FlushDirectory(); |
| +} |