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 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/bind_helpers.h" | 13 #include "base/bind_helpers.h" |
14 #include "base/callback.h" | 14 #include "base/callback.h" |
15 #include "base/command_line.h" | 15 #include "base/command_line.h" |
16 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
17 #include "base/file_util.h" | 17 #include "base/files/file_util.h" |
18 #include "base/logging.h" | 18 #include "base/logging.h" |
19 #include "base/memory/ref_counted.h" | 19 #include "base/memory/ref_counted.h" |
20 #include "base/message_loop/message_loop.h" | 20 #include "base/message_loop/message_loop.h" |
21 #include "base/metrics/histogram.h" | 21 #include "base/metrics/histogram.h" |
22 #include "base/strings/string16.h" | 22 #include "base/strings/string16.h" |
23 #include "base/strings/stringprintf.h" | 23 #include "base/strings/stringprintf.h" |
24 #include "base/threading/thread_restrictions.h" | 24 #include "base/threading/thread_restrictions.h" |
25 #include "build/build_config.h" | 25 #include "build/build_config.h" |
26 #include "chrome/browser/bookmarks/enhanced_bookmarks_features.h" | 26 #include "chrome/browser/bookmarks/enhanced_bookmarks_features.h" |
27 #include "chrome/browser/browser_process.h" | 27 #include "chrome/browser/browser_process.h" |
(...skipping 2755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2783 true)); | 2783 true)); |
2784 } | 2784 } |
2785 | 2785 |
2786 bool ProfileSyncService::NeedBackup() const { | 2786 bool ProfileSyncService::NeedBackup() const { |
2787 return need_backup_; | 2787 return need_backup_; |
2788 } | 2788 } |
2789 | 2789 |
2790 base::Time ProfileSyncService::GetDeviceBackupTimeForTesting() const { | 2790 base::Time ProfileSyncService::GetDeviceBackupTimeForTesting() const { |
2791 return backend_->GetSyncedDeviceTracker()->GetLocalDeviceBackupTime(); | 2791 return backend_->GetSyncedDeviceTracker()->GetLocalDeviceBackupTime(); |
2792 } | 2792 } |
OLD | NEW |