| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ios/chrome/browser/prefs/browser_prefs.h" | 5 #include "ios/chrome/browser/prefs/browser_prefs.h" |
| 6 | 6 |
| 7 #include "components/autofill/core/browser/autofill_manager.h" | 7 #include "components/autofill/core/browser/autofill_manager.h" |
| 8 #include "components/browsing_data/core/pref_names.h" | 8 #include "components/browsing_data/core/pref_names.h" |
| 9 #include "components/content_settings/core/browser/host_content_settings_map.h" | 9 #include "components/content_settings/core/browser/host_content_settings_map.h" |
| 10 #include "components/dom_distiller/core/distilled_page_prefs.h" | 10 #include "components/dom_distiller/core/distilled_page_prefs.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 #import "ios/chrome/browser/memory/memory_debugger_manager.h" | 39 #import "ios/chrome/browser/memory/memory_debugger_manager.h" |
| 40 #import "ios/chrome/browser/metrics/ios_chrome_metrics_service_client.h" | 40 #import "ios/chrome/browser/metrics/ios_chrome_metrics_service_client.h" |
| 41 #include "ios/chrome/browser/net/http_server_properties_manager_factory.h" | 41 #include "ios/chrome/browser/net/http_server_properties_manager_factory.h" |
| 42 #include "ios/chrome/browser/notification_promo.h" | 42 #include "ios/chrome/browser/notification_promo.h" |
| 43 #include "ios/chrome/browser/pref_names.h" | 43 #include "ios/chrome/browser/pref_names.h" |
| 44 #include "ios/chrome/browser/signin/signin_manager_factory.h" | 44 #include "ios/chrome/browser/signin/signin_manager_factory.h" |
| 45 #include "ios/chrome/browser/voice/voice_search_prefs_registration.h" | 45 #include "ios/chrome/browser/voice/voice_search_prefs_registration.h" |
| 46 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h" | 46 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h" |
| 47 #include "ui/base/l10n/l10n_util.h" | 47 #include "ui/base/l10n/l10n_util.h" |
| 48 | 48 |
| 49 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 50 #error "This file requires ARC support." |
| 51 #endif |
| 52 |
| 49 void RegisterLocalStatePrefs(PrefRegistrySimple* registry) { | 53 void RegisterLocalStatePrefs(PrefRegistrySimple* registry) { |
| 50 BrowserStateInfoCache::RegisterPrefs(registry); | 54 BrowserStateInfoCache::RegisterPrefs(registry); |
| 51 flags_ui::PrefServiceFlagsStorage::RegisterPrefs(registry); | 55 flags_ui::PrefServiceFlagsStorage::RegisterPrefs(registry); |
| 52 gcm::GCMChannelStatusSyncer::RegisterPrefs(registry); | 56 gcm::GCMChannelStatusSyncer::RegisterPrefs(registry); |
| 53 ios::SigninManagerFactory::RegisterPrefs(registry); | 57 ios::SigninManagerFactory::RegisterPrefs(registry); |
| 54 IOSChromeMetricsServiceClient::RegisterPrefs(registry); | 58 IOSChromeMetricsServiceClient::RegisterPrefs(registry); |
| 55 network_time::NetworkTimeTracker::RegisterPrefs(registry); | 59 network_time::NetworkTimeTracker::RegisterPrefs(registry); |
| 56 ios::NotificationPromo::RegisterPrefs(registry); | 60 ios::NotificationPromo::RegisterPrefs(registry); |
| 57 PrefProxyConfigTrackerImpl::RegisterPrefs(registry); | 61 PrefProxyConfigTrackerImpl::RegisterPrefs(registry); |
| 58 rappor::RapporService::RegisterPrefs(registry); | 62 rappor::RapporService::RegisterPrefs(registry); |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 } | 149 } |
| 146 | 150 |
| 147 // This method should be periodically pruned of year+ old migrations. | 151 // This method should be periodically pruned of year+ old migrations. |
| 148 void MigrateObsoleteBrowserStatePrefs(PrefService* prefs) { | 152 void MigrateObsoleteBrowserStatePrefs(PrefService* prefs) { |
| 149 // Added 07/2014. | 153 // Added 07/2014. |
| 150 translate::TranslatePrefs::MigrateUserPrefs(prefs, prefs::kAcceptLanguages); | 154 translate::TranslatePrefs::MigrateUserPrefs(prefs, prefs::kAcceptLanguages); |
| 151 | 155 |
| 152 // Added 08/2015. | 156 // Added 08/2015. |
| 153 prefs->ClearPref(::prefs::kSigninSharedAuthenticationUserId); | 157 prefs->ClearPref(::prefs::kSigninSharedAuthenticationUserId); |
| 154 } | 158 } |
| OLD | NEW |