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 "components/browser_sync/browser/profile_sync_service.h" | 5 #include "components/browser_sync/browser/profile_sync_service.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <cstddef> | 8 #include <cstddef> |
9 #include <map> | 9 #include <map> |
10 #include <utility> | 10 #include <utility> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/bind.h" | 13 #include "base/bind.h" |
14 #include "base/bind_helpers.h" | 14 #include "base/bind_helpers.h" |
15 #include "base/callback.h" | 15 #include "base/callback.h" |
16 #include "base/command_line.h" | 16 #include "base/command_line.h" |
17 #include "base/compiler_specific.h" | 17 #include "base/compiler_specific.h" |
18 #include "base/files/file_util.h" | 18 #include "base/files/file_util.h" |
19 #include "base/logging.h" | 19 #include "base/logging.h" |
20 #include "base/macros.h" | 20 #include "base/macros.h" |
21 #include "base/memory/ref_counted.h" | 21 #include "base/memory/ref_counted.h" |
22 #include "base/metrics/histogram.h" | 22 #include "base/metrics/histogram.h" |
23 #include "base/prefs/json_pref_store.h" | |
24 #include "base/profiler/scoped_tracker.h" | 23 #include "base/profiler/scoped_tracker.h" |
25 #include "base/single_thread_task_runner.h" | 24 #include "base/single_thread_task_runner.h" |
26 #include "base/strings/string16.h" | 25 #include "base/strings/string16.h" |
27 #include "base/strings/stringprintf.h" | 26 #include "base/strings/stringprintf.h" |
28 #include "base/thread_task_runner_handle.h" | 27 #include "base/thread_task_runner_handle.h" |
29 #include "base/threading/thread_restrictions.h" | 28 #include "base/threading/thread_restrictions.h" |
30 #include "base/time/time.h" | 29 #include "base/time/time.h" |
31 #include "build/build_config.h" | 30 #include "build/build_config.h" |
32 #include "components/autofill/core/common/autofill_pref_names.h" | 31 #include "components/autofill/core/common/autofill_pref_names.h" |
33 #include "components/browser_sync/common/browser_sync_switches.h" | 32 #include "components/browser_sync/common/browser_sync_switches.h" |
34 #include "components/history/core/browser/typed_url_data_type_controller.h" | 33 #include "components/history/core/browser/typed_url_data_type_controller.h" |
35 #include "components/invalidation/impl/invalidation_prefs.h" | 34 #include "components/invalidation/impl/invalidation_prefs.h" |
36 #include "components/invalidation/public/invalidation_service.h" | 35 #include "components/invalidation/public/invalidation_service.h" |
37 #include "components/pref_registry/pref_registry_syncable.h" | 36 #include "components/pref_registry/pref_registry_syncable.h" |
| 37 #include "components/prefs/json_pref_store.h" |
38 #include "components/signin/core/browser/about_signin_internals.h" | 38 #include "components/signin/core/browser/about_signin_internals.h" |
39 #include "components/signin/core/browser/profile_oauth2_token_service.h" | 39 #include "components/signin/core/browser/profile_oauth2_token_service.h" |
40 #include "components/signin/core/browser/signin_manager.h" | 40 #include "components/signin/core/browser/signin_manager.h" |
41 #include "components/signin/core/browser/signin_metrics.h" | 41 #include "components/signin/core/browser/signin_metrics.h" |
42 #include "components/strings/grit/components_strings.h" | 42 #include "components/strings/grit/components_strings.h" |
43 #include "components/sync_driver/backend_migrator.h" | 43 #include "components/sync_driver/backend_migrator.h" |
44 #include "components/sync_driver/change_processor.h" | 44 #include "components/sync_driver/change_processor.h" |
45 #include "components/sync_driver/data_type_controller.h" | 45 #include "components/sync_driver/data_type_controller.h" |
46 #include "components/sync_driver/device_info.h" | 46 #include "components/sync_driver/device_info.h" |
47 #include "components/sync_driver/glue/chrome_report_unrecoverable_error.h" | 47 #include "components/sync_driver/glue/chrome_report_unrecoverable_error.h" |
(...skipping 2698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2746 } | 2746 } |
2747 | 2747 |
2748 std::string ProfileSyncService::unrecoverable_error_message() const { | 2748 std::string ProfileSyncService::unrecoverable_error_message() const { |
2749 return unrecoverable_error_message_; | 2749 return unrecoverable_error_message_; |
2750 } | 2750 } |
2751 | 2751 |
2752 tracked_objects::Location ProfileSyncService::unrecoverable_error_location() | 2752 tracked_objects::Location ProfileSyncService::unrecoverable_error_location() |
2753 const { | 2753 const { |
2754 return unrecoverable_error_location_; | 2754 return unrecoverable_error_location_; |
2755 } | 2755 } |
OLD | NEW |