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

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

Issue 2913573002: Updates language model on iOS. (Closed)
Patch Set: Created 3 years, 6 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
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 14 matching lines...) Expand all
25 #include "components/password_manager/core/browser/password_manager.h" 25 #include "components/password_manager/core/browser/password_manager.h"
26 #include "components/pref_registry/pref_registry_syncable.h" 26 #include "components/pref_registry/pref_registry_syncable.h"
27 #include "components/prefs/pref_service.h" 27 #include "components/prefs/pref_service.h"
28 #include "components/proxy_config/pref_proxy_config_tracker_impl.h" 28 #include "components/proxy_config/pref_proxy_config_tracker_impl.h"
29 #include "components/rappor/rappor_service_impl.h" 29 #include "components/rappor/rappor_service_impl.h"
30 #include "components/search_engines/template_url_prepopulate_data.h" 30 #include "components/search_engines/template_url_prepopulate_data.h"
31 #include "components/signin/core/common/signin_pref_names.h" 31 #include "components/signin/core/common/signin_pref_names.h"
32 #include "components/ssl_config/ssl_config_service_manager.h" 32 #include "components/ssl_config/ssl_config_service_manager.h"
33 #include "components/strings/grit/components_locale_settings.h" 33 #include "components/strings/grit/components_locale_settings.h"
34 #include "components/sync/base/sync_prefs.h" 34 #include "components/sync/base/sync_prefs.h"
35 #include "components/translate/core/browser/language_model.h"
35 #include "components/translate/core/browser/translate_pref_names.h" 36 #include "components/translate/core/browser/translate_pref_names.h"
36 #include "components/translate/core/browser/translate_prefs.h" 37 #include "components/translate/core/browser/translate_prefs.h"
37 #include "components/update_client/update_client.h" 38 #include "components/update_client/update_client.h"
38 #include "components/variations/service/variations_service.h" 39 #include "components/variations/service/variations_service.h"
39 #include "components/web_resource/web_resource_pref_names.h" 40 #include "components/web_resource/web_resource_pref_names.h"
40 #include "ios/chrome/browser/browser_state/browser_state_info_cache.h" 41 #include "ios/chrome/browser/browser_state/browser_state_info_cache.h"
41 #include "ios/chrome/browser/desktop_promotion/desktop_promotion_sync_service.h" 42 #include "ios/chrome/browser/desktop_promotion/desktop_promotion_sync_service.h"
42 #include "ios/chrome/browser/first_run/first_run.h" 43 #include "ios/chrome/browser/first_run/first_run.h"
43 #import "ios/chrome/browser/geolocation/omnibox_geolocation_local_state.h" 44 #import "ios/chrome/browser/geolocation/omnibox_geolocation_local_state.h"
44 #import "ios/chrome/browser/memory/memory_debugger_manager.h" 45 #import "ios/chrome/browser/memory/memory_debugger_manager.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 ntp_snippets::RemoteSuggestionsSchedulerImpl::RegisterProfilePrefs(registry); 107 ntp_snippets::RemoteSuggestionsSchedulerImpl::RegisterProfilePrefs(registry);
107 ntp_snippets::RequestThrottler::RegisterProfilePrefs(registry); 108 ntp_snippets::RequestThrottler::RegisterProfilePrefs(registry);
108 ntp_snippets::UserClassifier::RegisterProfilePrefs(registry); 109 ntp_snippets::UserClassifier::RegisterProfilePrefs(registry);
109 ntp_tiles::MostVisitedSites::RegisterProfilePrefs(registry); 110 ntp_tiles::MostVisitedSites::RegisterProfilePrefs(registry);
110 ntp_tiles::PopularSitesImpl::RegisterProfilePrefs(registry); 111 ntp_tiles::PopularSitesImpl::RegisterProfilePrefs(registry);
111 ios::NotificationPromo::RegisterProfilePrefs(registry); 112 ios::NotificationPromo::RegisterProfilePrefs(registry);
112 password_manager::PasswordManager::RegisterProfilePrefs(registry); 113 password_manager::PasswordManager::RegisterProfilePrefs(registry);
113 PrefProxyConfigTrackerImpl::RegisterProfilePrefs(registry); 114 PrefProxyConfigTrackerImpl::RegisterProfilePrefs(registry);
114 syncer::SyncPrefs::RegisterProfilePrefs(registry); 115 syncer::SyncPrefs::RegisterProfilePrefs(registry);
115 TemplateURLPrepopulateData::RegisterProfilePrefs(registry); 116 TemplateURLPrepopulateData::RegisterProfilePrefs(registry);
117 translate::LanguageModel::RegisterProfilePrefs(registry);
116 translate::TranslatePrefs::RegisterProfilePrefs(registry); 118 translate::TranslatePrefs::RegisterProfilePrefs(registry);
117 variations::VariationsService::RegisterProfilePrefs(registry); 119 variations::VariationsService::RegisterProfilePrefs(registry);
118 ZeroSuggestProvider::RegisterProfilePrefs(registry); 120 ZeroSuggestProvider::RegisterProfilePrefs(registry);
119 DesktopPromotionSyncService::RegisterDesktopPromotionUserPrefs(registry); 121 DesktopPromotionSyncService::RegisterDesktopPromotionUserPrefs(registry);
120 RegisterVoiceSearchBrowserStatePrefs(registry); 122 RegisterVoiceSearchBrowserStatePrefs(registry);
121 123
122 [BookmarkInteractionController registerBrowserStatePrefs:registry]; 124 [BookmarkInteractionController registerBrowserStatePrefs:registry];
123 [BookmarkPromoController registerBrowserStatePrefs:registry]; 125 [BookmarkPromoController registerBrowserStatePrefs:registry];
124 [HandoffManager registerBrowserStatePrefs:registry]; 126 [HandoffManager registerBrowserStatePrefs:registry];
125 127
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 } 166 }
165 167
166 // This method should be periodically pruned of year+ old migrations. 168 // This method should be periodically pruned of year+ old migrations.
167 void MigrateObsoleteBrowserStatePrefs(PrefService* prefs) { 169 void MigrateObsoleteBrowserStatePrefs(PrefService* prefs) {
168 // Added 07/2014. 170 // Added 07/2014.
169 translate::TranslatePrefs::MigrateUserPrefs(prefs, prefs::kAcceptLanguages); 171 translate::TranslatePrefs::MigrateUserPrefs(prefs, prefs::kAcceptLanguages);
170 172
171 // Added 08/2015. 173 // Added 08/2015.
172 prefs->ClearPref(::prefs::kSigninSharedAuthenticationUserId); 174 prefs->ClearPref(::prefs::kSigninSharedAuthenticationUserId);
173 } 175 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.mm ('k') | ios/chrome/browser/translate/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698