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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 #include "chrome/browser/ui/browser_list.h" | 56 #include "chrome/browser/ui/browser_list.h" |
57 #include "chrome/browser/ui/browser_window.h" | 57 #include "chrome/browser/ui/browser_window.h" |
58 #include "chrome/browser/ui/global_error/global_error_service.h" | 58 #include "chrome/browser/ui/global_error/global_error_service.h" |
59 #include "chrome/browser/ui/global_error/global_error_service_factory.h" | 59 #include "chrome/browser/ui/global_error/global_error_service_factory.h" |
60 #include "chrome/common/chrome_switches.h" | 60 #include "chrome/common/chrome_switches.h" |
61 #include "chrome/common/chrome_version_info.h" | 61 #include "chrome/common/chrome_version_info.h" |
62 #include "chrome/common/pref_names.h" | 62 #include "chrome/common/pref_names.h" |
63 #include "chrome/common/url_constants.h" | 63 #include "chrome/common/url_constants.h" |
64 #include "chrome/grit/generated_resources.h" | 64 #include "chrome/grit/generated_resources.h" |
65 #include "components/autofill/core/common/autofill_pref_names.h" | 65 #include "components/autofill/core/common/autofill_pref_names.h" |
66 #include "components/invalidation/invalidation_service.h" | 66 #include "components/invalidation/impl/profile_invalidation_provider.h" |
67 #include "components/invalidation/profile_invalidation_provider.h" | 67 #include "components/invalidation/public/invalidation_service.h" |
68 #include "components/password_manager/core/browser/password_store.h" | 68 #include "components/password_manager/core/browser/password_store.h" |
69 #include "components/pref_registry/pref_registry_syncable.h" | 69 #include "components/pref_registry/pref_registry_syncable.h" |
70 #include "components/signin/core/browser/about_signin_internals.h" | 70 #include "components/signin/core/browser/about_signin_internals.h" |
71 #include "components/signin/core/browser/profile_oauth2_token_service.h" | 71 #include "components/signin/core/browser/profile_oauth2_token_service.h" |
72 #include "components/signin/core/browser/signin_manager.h" | 72 #include "components/signin/core/browser/signin_manager.h" |
73 #include "components/signin/core/browser/signin_metrics.h" | 73 #include "components/signin/core/browser/signin_metrics.h" |
74 #include "components/sync_driver/change_processor.h" | 74 #include "components/sync_driver/change_processor.h" |
75 #include "components/sync_driver/data_type_controller.h" | 75 #include "components/sync_driver/data_type_controller.h" |
76 #include "components/sync_driver/device_info.h" | 76 #include "components/sync_driver/device_info.h" |
77 #include "components/sync_driver/pref_names.h" | 77 #include "components/sync_driver/pref_names.h" |
(...skipping 2690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2768 } else { | 2768 } else { |
2769 UMA_HISTOGRAM_COUNTS("Sync.MemoryPressureWarningBeforeCleanShutdown", | 2769 UMA_HISTOGRAM_COUNTS("Sync.MemoryPressureWarningBeforeCleanShutdown", |
2770 warning_received); | 2770 warning_received); |
2771 } | 2771 } |
2772 } | 2772 } |
2773 sync_prefs_.SetMemoryPressureWarningCount(0); | 2773 sync_prefs_.SetMemoryPressureWarningCount(0); |
2774 // Will set to true during a clean shutdown, so crash or something else will | 2774 // Will set to true during a clean shutdown, so crash or something else will |
2775 // remain this as false. | 2775 // remain this as false. |
2776 sync_prefs_.SetCleanShutdown(false); | 2776 sync_prefs_.SetCleanShutdown(false); |
2777 } | 2777 } |
OLD | NEW |