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

Side by Side Diff: ios/chrome/browser/prefs/browser_prefs.mm

Issue 2893603003: [ObjC ARC] Converts ios/chrome/browser/prefs:browser_prefs to ARC. (Closed)
Patch Set: Created 3 years, 7 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 | « ios/chrome/browser/prefs/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 #include "ios/chrome/browser/notification_promo.h" 48 #include "ios/chrome/browser/notification_promo.h"
49 #include "ios/chrome/browser/physical_web/physical_web_prefs_registration.h" 49 #include "ios/chrome/browser/physical_web/physical_web_prefs_registration.h"
50 #include "ios/chrome/browser/pref_names.h" 50 #include "ios/chrome/browser/pref_names.h"
51 #include "ios/chrome/browser/signin/signin_manager_factory.h" 51 #include "ios/chrome/browser/signin/signin_manager_factory.h"
52 #import "ios/chrome/browser/ui/bookmarks/bookmark_interaction_controller.h" 52 #import "ios/chrome/browser/ui/bookmarks/bookmark_interaction_controller.h"
53 #import "ios/chrome/browser/ui/bookmarks/bookmark_promo_controller.h" 53 #import "ios/chrome/browser/ui/bookmarks/bookmark_promo_controller.h"
54 #include "ios/chrome/browser/voice/voice_search_prefs_registration.h" 54 #include "ios/chrome/browser/voice/voice_search_prefs_registration.h"
55 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h" 55 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h"
56 #include "ui/base/l10n/l10n_util.h" 56 #include "ui/base/l10n/l10n_util.h"
57 57
58 #if !defined(__has_feature) || !__has_feature(objc_arc)
59 #error "This file requires ARC support."
60 #endif
61
58 void RegisterLocalStatePrefs(PrefRegistrySimple* registry) { 62 void RegisterLocalStatePrefs(PrefRegistrySimple* registry) {
59 BrowserStateInfoCache::RegisterPrefs(registry); 63 BrowserStateInfoCache::RegisterPrefs(registry);
60 flags_ui::PrefServiceFlagsStorage::RegisterPrefs(registry); 64 flags_ui::PrefServiceFlagsStorage::RegisterPrefs(registry);
61 gcm::GCMChannelStatusSyncer::RegisterPrefs(registry); 65 gcm::GCMChannelStatusSyncer::RegisterPrefs(registry);
62 ios::SigninManagerFactory::RegisterPrefs(registry); 66 ios::SigninManagerFactory::RegisterPrefs(registry);
63 IOSChromeMetricsServiceClient::RegisterPrefs(registry); 67 IOSChromeMetricsServiceClient::RegisterPrefs(registry);
64 network_time::NetworkTimeTracker::RegisterPrefs(registry); 68 network_time::NetworkTimeTracker::RegisterPrefs(registry);
65 ios::NotificationPromo::RegisterPrefs(registry); 69 ios::NotificationPromo::RegisterPrefs(registry);
66 PrefProxyConfigTrackerImpl::RegisterPrefs(registry); 70 PrefProxyConfigTrackerImpl::RegisterPrefs(registry);
67 rappor::RapporServiceImpl::RegisterPrefs(registry); 71 rappor::RapporServiceImpl::RegisterPrefs(registry);
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 } 166 }
163 167
164 // This method should be periodically pruned of year+ old migrations. 168 // This method should be periodically pruned of year+ old migrations.
165 void MigrateObsoleteBrowserStatePrefs(PrefService* prefs) { 169 void MigrateObsoleteBrowserStatePrefs(PrefService* prefs) {
166 // Added 07/2014. 170 // Added 07/2014.
167 translate::TranslatePrefs::MigrateUserPrefs(prefs, prefs::kAcceptLanguages); 171 translate::TranslatePrefs::MigrateUserPrefs(prefs, prefs::kAcceptLanguages);
168 172
169 // Added 08/2015. 173 // Added 08/2015.
170 prefs->ClearPref(::prefs::kSigninSharedAuthenticationUserId); 174 prefs->ClearPref(::prefs::kSigninSharedAuthenticationUserId);
171 } 175 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/prefs/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698