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 2689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2700 true)); | 2700 true)); |
2701 } | 2701 } |
2702 | 2702 |
2703 bool ProfileSyncService::NeedBackup() const { | 2703 bool ProfileSyncService::NeedBackup() const { |
2704 return need_backup_; | 2704 return need_backup_; |
2705 } | 2705 } |
2706 | 2706 |
2707 base::Time ProfileSyncService::GetDeviceBackupTimeForTesting() const { | 2707 base::Time ProfileSyncService::GetDeviceBackupTimeForTesting() const { |
2708 return device_info_sync_service_->GetLocalDeviceBackupTime(); | 2708 return device_info_sync_service_->GetLocalDeviceBackupTime(); |
2709 } | 2709 } |
| 2710 |
| 2711 void ProfileSyncService::FlushDirectory() const { |
| 2712 // backend_initialized_ implies backend_ isn't NULL and the manager exists. |
| 2713 // If sync is not initialized yet, we fail silently. |
| 2714 if (backend_initialized_) |
| 2715 backend_->FlushDirectory(); |
| 2716 } |
OLD | NEW |