Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Side by Side Diff: chrome/browser/sync/profile_sync_service.cc

Issue 1272713002: [Sync] Move sync error controller to sync driver component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix GN Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/sync/sync_error_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 30 matching lines...) Expand all
41 #include "chrome/browser/signin/signin_manager_factory.h" 41 #include "chrome/browser/signin/signin_manager_factory.h"
42 #include "chrome/browser/sync/glue/chrome_report_unrecoverable_error.h" 42 #include "chrome/browser/sync/glue/chrome_report_unrecoverable_error.h"
43 #include "chrome/browser/sync/glue/favicon_cache.h" 43 #include "chrome/browser/sync/glue/favicon_cache.h"
44 #include "chrome/browser/sync/glue/sync_backend_host.h" 44 #include "chrome/browser/sync/glue/sync_backend_host.h"
45 #include "chrome/browser/sync/glue/sync_backend_host_impl.h" 45 #include "chrome/browser/sync/glue/sync_backend_host_impl.h"
46 #include "chrome/browser/sync/glue/sync_start_util.h" 46 #include "chrome/browser/sync/glue/sync_start_util.h"
47 #include "chrome/browser/sync/glue/typed_url_data_type_controller.h" 47 #include "chrome/browser/sync/glue/typed_url_data_type_controller.h"
48 #include "chrome/browser/sync/profile_sync_components_factory_impl.h" 48 #include "chrome/browser/sync/profile_sync_components_factory_impl.h"
49 #include "chrome/browser/sync/sessions/notification_service_sessions_router.h" 49 #include "chrome/browser/sync/sessions/notification_service_sessions_router.h"
50 #include "chrome/browser/sync/supervised_user_signin_manager_wrapper.h" 50 #include "chrome/browser/sync/supervised_user_signin_manager_wrapper.h"
51 #include "chrome/browser/sync/sync_error_controller.h"
52 #include "chrome/browser/sync/sync_stopped_reporter.h" 51 #include "chrome/browser/sync/sync_stopped_reporter.h"
53 #include "chrome/browser/sync/sync_type_preference_provider.h" 52 #include "chrome/browser/sync/sync_type_preference_provider.h"
54 #include "chrome/browser/ui/browser.h" 53 #include "chrome/browser/ui/browser.h"
55 #include "chrome/browser/ui/browser_list.h" 54 #include "chrome/browser/ui/browser_list.h"
56 #include "chrome/browser/ui/browser_window.h" 55 #include "chrome/browser/ui/browser_window.h"
57 #include "chrome/browser/ui/global_error/global_error_service.h" 56 #include "chrome/browser/ui/global_error/global_error_service.h"
58 #include "chrome/browser/ui/global_error/global_error_service_factory.h" 57 #include "chrome/browser/ui/global_error/global_error_service_factory.h"
59 #include "chrome/common/chrome_switches.h" 58 #include "chrome/common/chrome_switches.h"
60 #include "chrome/common/pref_names.h" 59 #include "chrome/common/pref_names.h"
61 #include "chrome/common/sync_util.h" 60 #include "chrome/common/sync_util.h"
62 #include "chrome/common/url_constants.h" 61 #include "chrome/common/url_constants.h"
63 #include "chrome/grit/generated_resources.h" 62 #include "chrome/grit/generated_resources.h"
64 #include "components/autofill/core/common/autofill_pref_names.h" 63 #include "components/autofill/core/common/autofill_pref_names.h"
65 #include "components/invalidation/impl/profile_invalidation_provider.h" 64 #include "components/invalidation/impl/profile_invalidation_provider.h"
66 #include "components/invalidation/public/invalidation_service.h" 65 #include "components/invalidation/public/invalidation_service.h"
67 #include "components/password_manager/core/browser/password_store.h" 66 #include "components/password_manager/core/browser/password_store.h"
68 #include "components/pref_registry/pref_registry_syncable.h" 67 #include "components/pref_registry/pref_registry_syncable.h"
69 #include "components/signin/core/browser/about_signin_internals.h" 68 #include "components/signin/core/browser/about_signin_internals.h"
70 #include "components/signin/core/browser/profile_oauth2_token_service.h" 69 #include "components/signin/core/browser/profile_oauth2_token_service.h"
71 #include "components/signin/core/browser/signin_manager.h" 70 #include "components/signin/core/browser/signin_manager.h"
72 #include "components/signin/core/browser/signin_metrics.h" 71 #include "components/signin/core/browser/signin_metrics.h"
73 #include "components/sync_driver/backend_migrator.h" 72 #include "components/sync_driver/backend_migrator.h"
74 #include "components/sync_driver/change_processor.h" 73 #include "components/sync_driver/change_processor.h"
75 #include "components/sync_driver/data_type_controller.h" 74 #include "components/sync_driver/data_type_controller.h"
76 #include "components/sync_driver/device_info.h" 75 #include "components/sync_driver/device_info.h"
77 #include "components/sync_driver/pref_names.h" 76 #include "components/sync_driver/pref_names.h"
77 #include "components/sync_driver/sync_error_controller.h"
78 #include "components/sync_driver/system_encryptor.h" 78 #include "components/sync_driver/system_encryptor.h"
79 #include "components/sync_driver/user_selectable_sync_type.h" 79 #include "components/sync_driver/user_selectable_sync_type.h"
80 #include "content/public/browser/browser_thread.h" 80 #include "content/public/browser/browser_thread.h"
81 #include "content/public/browser/notification_details.h" 81 #include "content/public/browser/notification_details.h"
82 #include "content/public/browser/notification_service.h" 82 #include "content/public/browser/notification_service.h"
83 #include "content/public/browser/notification_source.h" 83 #include "content/public/browser/notification_source.h"
84 #include "net/cookies/cookie_monster.h" 84 #include "net/cookies/cookie_monster.h"
85 #include "net/url_request/url_request_context_getter.h" 85 #include "net/url_request/url_request_context_getter.h"
86 #include "sync/api/sync_error.h" 86 #include "sync/api/sync_error.h"
87 #include "sync/internal_api/public/configure_reason.h" 87 #include "sync/internal_api/public/configure_reason.h"
(...skipping 2633 matching lines...) Expand 10 before | Expand all | Expand 10 after
2721 } else { 2721 } else {
2722 UMA_HISTOGRAM_COUNTS("Sync.MemoryPressureWarningBeforeCleanShutdown", 2722 UMA_HISTOGRAM_COUNTS("Sync.MemoryPressureWarningBeforeCleanShutdown",
2723 warning_received); 2723 warning_received);
2724 } 2724 }
2725 } 2725 }
2726 sync_prefs_.SetMemoryPressureWarningCount(0); 2726 sync_prefs_.SetMemoryPressureWarningCount(0);
2727 // Will set to true during a clean shutdown, so crash or something else will 2727 // Will set to true during a clean shutdown, so crash or something else will
2728 // remain this as false. 2728 // remain this as false.
2729 sync_prefs_.SetCleanShutdown(false); 2729 sync_prefs_.SetCleanShutdown(false);
2730 } 2730 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync/sync_error_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698