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 "components/browser_sync/browser/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/files/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/metrics/histogram.h" | 20 #include "base/metrics/histogram.h" |
21 #include "base/prefs/json_pref_store.h" | 21 #include "base/prefs/json_pref_store.h" |
22 #include "base/profiler/scoped_tracker.h" | 22 #include "base/profiler/scoped_tracker.h" |
23 #include "base/single_thread_task_runner.h" | 23 #include "base/single_thread_task_runner.h" |
24 #include "base/strings/string16.h" | 24 #include "base/strings/string16.h" |
25 #include "base/strings/stringprintf.h" | 25 #include "base/strings/stringprintf.h" |
26 #include "base/thread_task_runner_handle.h" | 26 #include "base/thread_task_runner_handle.h" |
27 #include "base/threading/thread_restrictions.h" | 27 #include "base/threading/thread_restrictions.h" |
28 #include "base/time/time.h" | 28 #include "base/time/time.h" |
29 #include "build/build_config.h" | 29 #include "build/build_config.h" |
30 #include "chrome/browser/sync/sync_type_preference_provider.h" | |
31 #include "components/autofill/core/common/autofill_pref_names.h" | 30 #include "components/autofill/core/common/autofill_pref_names.h" |
32 #include "components/browser_sync/common/browser_sync_switches.h" | 31 #include "components/browser_sync/common/browser_sync_switches.h" |
33 #include "components/history/core/browser/typed_url_data_type_controller.h" | 32 #include "components/history/core/browser/typed_url_data_type_controller.h" |
34 #include "components/invalidation/impl/invalidation_prefs.h" | 33 #include "components/invalidation/impl/invalidation_prefs.h" |
35 #include "components/invalidation/public/invalidation_service.h" | 34 #include "components/invalidation/public/invalidation_service.h" |
36 #include "components/pref_registry/pref_registry_syncable.h" | 35 #include "components/pref_registry/pref_registry_syncable.h" |
37 #include "components/signin/core/browser/about_signin_internals.h" | 36 #include "components/signin/core/browser/about_signin_internals.h" |
38 #include "components/signin/core/browser/profile_oauth2_token_service.h" | 37 #include "components/signin/core/browser/profile_oauth2_token_service.h" |
39 #include "components/signin/core/browser/signin_manager.h" | 38 #include "components/signin/core/browser/signin_manager.h" |
40 #include "components/signin/core/browser/signin_metrics.h" | 39 #include "components/signin/core/browser/signin_metrics.h" |
41 #include "components/strings/grit/components_strings.h" | 40 #include "components/strings/grit/components_strings.h" |
42 #include "components/sync_driver/backend_migrator.h" | 41 #include "components/sync_driver/backend_migrator.h" |
43 #include "components/sync_driver/change_processor.h" | 42 #include "components/sync_driver/change_processor.h" |
44 #include "components/sync_driver/data_type_controller.h" | 43 #include "components/sync_driver/data_type_controller.h" |
45 #include "components/sync_driver/device_info.h" | 44 #include "components/sync_driver/device_info.h" |
46 #include "components/sync_driver/glue/chrome_report_unrecoverable_error.h" | 45 #include "components/sync_driver/glue/chrome_report_unrecoverable_error.h" |
47 #include "components/sync_driver/glue/sync_backend_host.h" | 46 #include "components/sync_driver/glue/sync_backend_host.h" |
48 #include "components/sync_driver/glue/sync_backend_host_impl.h" | 47 #include "components/sync_driver/glue/sync_backend_host_impl.h" |
49 #include "components/sync_driver/pref_names.h" | 48 #include "components/sync_driver/pref_names.h" |
50 #include "components/sync_driver/signin_manager_wrapper.h" | 49 #include "components/sync_driver/signin_manager_wrapper.h" |
51 #include "components/sync_driver/sync_api_component_factory.h" | 50 #include "components/sync_driver/sync_api_component_factory.h" |
52 #include "components/sync_driver/sync_client.h" | 51 #include "components/sync_driver/sync_client.h" |
53 #include "components/sync_driver/sync_driver_switches.h" | 52 #include "components/sync_driver/sync_driver_switches.h" |
54 #include "components/sync_driver/sync_error_controller.h" | 53 #include "components/sync_driver/sync_error_controller.h" |
55 #include "components/sync_driver/sync_stopped_reporter.h" | 54 #include "components/sync_driver/sync_stopped_reporter.h" |
| 55 #include "components/sync_driver/sync_type_preference_provider.h" |
56 #include "components/sync_driver/sync_util.h" | 56 #include "components/sync_driver/sync_util.h" |
57 #include "components/sync_driver/system_encryptor.h" | 57 #include "components/sync_driver/system_encryptor.h" |
58 #include "components/sync_driver/user_selectable_sync_type.h" | 58 #include "components/sync_driver/user_selectable_sync_type.h" |
59 #include "components/sync_sessions/favicon_cache.h" | 59 #include "components/sync_sessions/favicon_cache.h" |
60 #include "components/sync_sessions/session_data_type_controller.h" | 60 #include "components/sync_sessions/session_data_type_controller.h" |
61 #include "components/sync_sessions/sessions_sync_manager.h" | 61 #include "components/sync_sessions/sessions_sync_manager.h" |
62 #include "components/sync_sessions/sync_sessions_client.h" | 62 #include "components/sync_sessions/sync_sessions_client.h" |
63 #include "components/syncable_prefs/pref_service_syncable.h" | 63 #include "components/syncable_prefs/pref_service_syncable.h" |
64 #include "components/version_info/version_info_values.h" | 64 #include "components/version_info/version_info_values.h" |
65 #include "net/cookies/cookie_monster.h" | 65 #include "net/cookies/cookie_monster.h" |
(...skipping 2630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2696 } | 2696 } |
2697 | 2697 |
2698 std::string ProfileSyncService::unrecoverable_error_message() const { | 2698 std::string ProfileSyncService::unrecoverable_error_message() const { |
2699 return unrecoverable_error_message_; | 2699 return unrecoverable_error_message_; |
2700 } | 2700 } |
2701 | 2701 |
2702 tracked_objects::Location ProfileSyncService::unrecoverable_error_location() | 2702 tracked_objects::Location ProfileSyncService::unrecoverable_error_location() |
2703 const { | 2703 const { |
2704 return unrecoverable_error_location_; | 2704 return unrecoverable_error_location_; |
2705 } | 2705 } |
OLD | NEW |