OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/sync/profile_sync_service.h" | 5 #include "chrome/browser/sync/profile_sync_service.h" |
6 | 6 |
7 #include <cstddef> | 7 #include <cstddef> |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 2749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2760 true)); | 2760 true)); |
2761 } | 2761 } |
2762 | 2762 |
2763 bool ProfileSyncService::NeedBackup() const { | 2763 bool ProfileSyncService::NeedBackup() const { |
2764 return need_backup_; | 2764 return need_backup_; |
2765 } | 2765 } |
2766 | 2766 |
2767 base::Time ProfileSyncService::GetDeviceBackupTimeForTesting() const { | 2767 base::Time ProfileSyncService::GetDeviceBackupTimeForTesting() const { |
2768 return backend_->GetSyncedDeviceTracker()->GetLocalDeviceBackupTime(); | 2768 return backend_->GetSyncedDeviceTracker()->GetLocalDeviceBackupTime(); |
2769 } | 2769 } |
2770 | |
2771 void ProfileSyncService::FlushDirectory() const { | |
2772 // 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
| |
2773 if (backend_initialized_) | |
2774 backend_->FlushDirectory(); | |
2775 } | |
OLD | NEW |