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

Side by Side Diff: chrome/browser/prefs/browser_prefs.cc

Issue 1371863002: Android: Do not build files not needed on the platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 | « chrome/browser/BUILD.gn ('k') | chrome/browser/ui/BUILD.gn » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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/prefs/browser_prefs.h" 5 #include "chrome/browser/prefs/browser_prefs.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/metrics/histogram_macros.h" 9 #include "base/metrics/histogram_macros.h"
10 #include "base/prefs/pref_registry_simple.h" 10 #include "base/prefs/pref_registry_simple.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 #include "chrome/browser/task_manager/task_manager.h" 55 #include "chrome/browser/task_manager/task_manager.h"
56 #include "chrome/browser/tracing/chrome_tracing_delegate.h" 56 #include "chrome/browser/tracing/chrome_tracing_delegate.h"
57 #include "chrome/browser/ui/app_list/app_list_prefs.h" 57 #include "chrome/browser/ui/app_list/app_list_prefs.h"
58 #include "chrome/browser/ui/app_list/app_list_service.h" 58 #include "chrome/browser/ui/app_list/app_list_service.h"
59 #include "chrome/browser/ui/browser_ui_prefs.h" 59 #include "chrome/browser/ui/browser_ui_prefs.h"
60 #include "chrome/browser/ui/navigation_correction_tab_observer.h" 60 #include "chrome/browser/ui/navigation_correction_tab_observer.h"
61 #include "chrome/browser/ui/network_profile_bubble.h" 61 #include "chrome/browser/ui/network_profile_bubble.h"
62 #include "chrome/browser/ui/prefs/prefs_tab_helper.h" 62 #include "chrome/browser/ui/prefs/prefs_tab_helper.h"
63 #include "chrome/browser/ui/search_engines/keyword_editor_controller.h" 63 #include "chrome/browser/ui/search_engines/keyword_editor_controller.h"
64 #include "chrome/browser/ui/startup/autolaunch_prompt.h" 64 #include "chrome/browser/ui/startup/autolaunch_prompt.h"
65 #include "chrome/browser/ui/startup/default_browser_prompt.h"
66 #include "chrome/browser/ui/tabs/pinned_tab_codec.h" 65 #include "chrome/browser/ui/tabs/pinned_tab_codec.h"
67 #include "chrome/browser/ui/webui/flags_ui.h" 66 #include "chrome/browser/ui/webui/flags_ui.h"
68 #include "chrome/browser/ui/webui/instant_ui.h" 67 #include "chrome/browser/ui/webui/instant_ui.h"
69 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" 68 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h"
70 #include "chrome/browser/ui/webui/plugins_ui.h" 69 #include "chrome/browser/ui/webui/plugins_ui.h"
71 #include "chrome/browser/ui/webui/print_preview/sticky_settings.h" 70 #include "chrome/browser/ui/webui/print_preview/sticky_settings.h"
72 #include "chrome/browser/upgrade_detector.h"
73 #include "chrome/common/pref_names.h" 71 #include "chrome/common/pref_names.h"
74 #include "components/autofill/core/browser/autofill_manager.h" 72 #include "components/autofill/core/browser/autofill_manager.h"
75 #include "components/content_settings/core/browser/host_content_settings_map.h" 73 #include "components/content_settings/core/browser/host_content_settings_map.h"
76 #include "components/dom_distiller/core/distilled_page_prefs.h" 74 #include "components/dom_distiller/core/distilled_page_prefs.h"
77 #include "components/enhanced_bookmarks/bookmark_server_cluster_service.h" 75 #include "components/enhanced_bookmarks/bookmark_server_cluster_service.h"
78 #include "components/gcm_driver/gcm_channel_status_syncer.h" 76 #include "components/gcm_driver/gcm_channel_status_syncer.h"
79 #include "components/network_time/network_time_tracker.h" 77 #include "components/network_time/network_time_tracker.h"
80 #include "components/omnibox/browser/zero_suggest_provider.h" 78 #include "components/omnibox/browser/zero_suggest_provider.h"
81 #include "components/password_manager/core/browser/password_bubble_experiment.h" 79 #include "components/password_manager/core/browser/password_bubble_experiment.h"
82 #include "components/password_manager/core/browser/password_manager.h" 80 #include "components/password_manager/core/browser/password_manager.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 #include "chrome/browser/ui/webui/local_discovery/local_discovery_ui.h" 138 #include "chrome/browser/ui/webui/local_discovery/local_discovery_ui.h"
141 #endif 139 #endif
142 140
143 #if defined(OS_ANDROID) 141 #if defined(OS_ANDROID)
144 #include "chrome/browser/android/bookmarks/partner_bookmarks_shim.h" 142 #include "chrome/browser/android/bookmarks/partner_bookmarks_shim.h"
145 #include "chrome/browser/android/most_visited_sites.h" 143 #include "chrome/browser/android/most_visited_sites.h"
146 #include "chrome/browser/android/new_tab_page_prefs.h" 144 #include "chrome/browser/android/new_tab_page_prefs.h"
147 #else 145 #else
148 #include "chrome/browser/profile_resetter/automatic_profile_resetter_factory.h" 146 #include "chrome/browser/profile_resetter/automatic_profile_resetter_factory.h"
149 #include "chrome/browser/ui/startup/startup_browser_creator.h" 147 #include "chrome/browser/ui/startup/startup_browser_creator.h"
148 #include "chrome/browser/upgrade_detector.h"
150 #endif 149 #endif
151 150
152 #if !defined(OS_ANDROID) && !defined(OS_IOS) 151 #if !defined(OS_ANDROID) && !defined(OS_IOS)
153 #include "chrome/browser/signin/signin_promo.h" 152 #include "chrome/browser/signin/signin_promo.h"
154 #include "chrome/browser/ui/webui/foreign_session_handler.h" 153 #include "chrome/browser/ui/webui/foreign_session_handler.h"
155 #endif 154 #endif
156 155
157 #if defined(OS_CHROMEOS) 156 #if defined(OS_CHROMEOS)
158 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" 157 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h"
159 #include "chrome/browser/chromeos/customization/customization_document.h" 158 #include "chrome/browser/chromeos/customization/customization_document.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 #endif 213 #endif
215 214
216 #if defined(TOOLKIT_VIEWS) 215 #if defined(TOOLKIT_VIEWS)
217 #include "chrome/browser/ui/browser_view_prefs.h" 216 #include "chrome/browser/ui/browser_view_prefs.h"
218 #endif 217 #endif
219 218
220 #if defined(USE_ASH) 219 #if defined(USE_ASH)
221 #include "chrome/browser/ui/ash/chrome_launcher_prefs.h" 220 #include "chrome/browser/ui/ash/chrome_launcher_prefs.h"
222 #endif 221 #endif
223 222
223 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS)
224 #include "chrome/browser/ui/startup/default_browser_prompt.h"
225 #endif
226
224 namespace { 227 namespace {
225 228
226 #if !defined(OS_ANDROID) 229 #if !defined(OS_ANDROID)
227 // The AutomaticProfileResetter service used this preference to save that the 230 // The AutomaticProfileResetter service used this preference to save that the
228 // profile reset prompt had already been shown, however, the preference has been 231 // profile reset prompt had already been shown, however, the preference has been
229 // renamed in Local State. We keep the name here for now so that we can clear 232 // renamed in Local State. We keep the name here for now so that we can clear
230 // out legacy values. 233 // out legacy values.
231 // TODO(engedy): Remove this and usages in M42 or later. See crbug.com/398813. 234 // TODO(engedy): Remove this and usages in M42 or later. See crbug.com/398813.
232 const char kLegacyProfileResetPromptMemento[] = "profile.reset_prompt_memento"; 235 const char kLegacyProfileResetPromptMemento[] = "profile.reset_prompt_memento";
233 #endif 236 #endif
234 237
235 } // namespace 238 } // namespace
236 239
237 namespace chrome { 240 namespace chrome {
238 241
239 void RegisterLocalState(PrefRegistrySimple* registry) { 242 void RegisterLocalState(PrefRegistrySimple* registry) {
240
241 // Please keep this list alphabetized. 243 // Please keep this list alphabetized.
242 AppListService::RegisterPrefs(registry); 244 AppListService::RegisterPrefs(registry);
243 browser_shutdown::RegisterPrefs(registry); 245 browser_shutdown::RegisterPrefs(registry);
244 BrowserProcessImpl::RegisterPrefs(registry); 246 BrowserProcessImpl::RegisterPrefs(registry);
245 ChromeMetricsServiceClient::RegisterPrefs(registry); 247 ChromeMetricsServiceClient::RegisterPrefs(registry);
246 chrome_prefs::RegisterPrefs(registry); 248 chrome_prefs::RegisterPrefs(registry);
247 variations::VariationsService::RegisterPrefs(registry); 249 variations::VariationsService::RegisterPrefs(registry);
248 component_updater::RegisterPrefsForRecoveryComponent(registry); 250 component_updater::RegisterPrefsForRecoveryComponent(registry);
249 component_updater::SupervisedUserWhitelistInstaller::RegisterPrefs(registry); 251 component_updater::SupervisedUserWhitelistInstaller::RegisterPrefs(registry);
250 ExternalProtocolHandler::RegisterPrefs(registry); 252 ExternalProtocolHandler::RegisterPrefs(registry);
251 FlagsUI::RegisterPrefs(registry); 253 FlagsUI::RegisterPrefs(registry);
252 geolocation::RegisterPrefs(registry); 254 geolocation::RegisterPrefs(registry);
253 GLStringManager::RegisterPrefs(registry); 255 GLStringManager::RegisterPrefs(registry);
254 GpuModeManager::RegisterPrefs(registry); 256 GpuModeManager::RegisterPrefs(registry);
255 IntranetRedirectDetector::RegisterPrefs(registry); 257 IntranetRedirectDetector::RegisterPrefs(registry);
256 IOThread::RegisterPrefs(registry); 258 IOThread::RegisterPrefs(registry);
257 network_time::NetworkTimeTracker::RegisterPrefs(registry); 259 network_time::NetworkTimeTracker::RegisterPrefs(registry);
258 PrefProxyConfigTrackerImpl::RegisterPrefs(registry); 260 PrefProxyConfigTrackerImpl::RegisterPrefs(registry);
259 ProfileInfoCache::RegisterPrefs(registry); 261 ProfileInfoCache::RegisterPrefs(registry);
260 profiles::RegisterPrefs(registry); 262 profiles::RegisterPrefs(registry);
261 rappor::RapporService::RegisterPrefs(registry); 263 rappor::RapporService::RegisterPrefs(registry);
262 RegisterScreenshotPrefs(registry); 264 RegisterScreenshotPrefs(registry);
263 SigninManagerFactory::RegisterPrefs(registry); 265 SigninManagerFactory::RegisterPrefs(registry);
264 SSLConfigServiceManager::RegisterPrefs(registry); 266 SSLConfigServiceManager::RegisterPrefs(registry);
265 UpgradeDetector::RegisterPrefs(registry);
266 web_resource::PromoResourceService::RegisterPrefs(registry); 267 web_resource::PromoResourceService::RegisterPrefs(registry);
267 268
268 #if defined(ENABLE_AUTOFILL_DIALOG) 269 #if defined(ENABLE_AUTOFILL_DIALOG)
269 autofill::AutofillDialogController::RegisterPrefs(registry); 270 autofill::AutofillDialogController::RegisterPrefs(registry);
270 #endif 271 #endif
271 272
272 #if defined(ENABLE_CONFIGURATION_POLICY) 273 #if defined(ENABLE_CONFIGURATION_POLICY)
273 policy::BrowserPolicyConnector::RegisterPrefs(registry); 274 policy::BrowserPolicyConnector::RegisterPrefs(registry);
274 policy::PolicyStatisticsCollector::RegisterPrefs(registry); 275 policy::PolicyStatisticsCollector::RegisterPrefs(registry);
275 #endif 276 #endif
(...skipping 15 matching lines...) Expand all
291 #endif // defined(ENABLE_TASK_MANAGER) 292 #endif // defined(ENABLE_TASK_MANAGER)
292 293
293 #if !defined(OS_ANDROID) 294 #if !defined(OS_ANDROID)
294 AutomaticProfileResetterFactory::RegisterPrefs(registry); 295 AutomaticProfileResetterFactory::RegisterPrefs(registry);
295 BackgroundModeManager::RegisterPrefs(registry); 296 BackgroundModeManager::RegisterPrefs(registry);
296 ChromeTracingDelegate::RegisterPrefs(registry); 297 ChromeTracingDelegate::RegisterPrefs(registry);
297 RegisterBrowserPrefs(registry); 298 RegisterBrowserPrefs(registry);
298 StartupBrowserCreator::RegisterLocalStatePrefs(registry); 299 StartupBrowserCreator::RegisterLocalStatePrefs(registry);
299 // The native GCM is used on Android instead. 300 // The native GCM is used on Android instead.
300 gcm::GCMChannelStatusSyncer::RegisterPrefs(registry); 301 gcm::GCMChannelStatusSyncer::RegisterPrefs(registry);
302 UpgradeDetector::RegisterPrefs(registry);
301 #if !defined(OS_CHROMEOS) 303 #if !defined(OS_CHROMEOS)
302 RegisterDefaultBrowserPromptPrefs(registry); 304 RegisterDefaultBrowserPromptPrefs(registry);
303 #endif // !defined(OS_CHROMEOS) 305 #endif // !defined(OS_CHROMEOS)
304 #endif // !defined(OS_ANDROID) 306 #endif // !defined(OS_ANDROID)
305 307
306 #if defined(OS_CHROMEOS) 308 #if defined(OS_CHROMEOS)
307 ChromeOSMetricsProvider::RegisterPrefs(registry); 309 ChromeOSMetricsProvider::RegisterPrefs(registry);
308 chromeos::AudioDevicesPrefHandlerImpl::RegisterPrefs(registry); 310 chromeos::AudioDevicesPrefHandlerImpl::RegisterPrefs(registry);
309 chromeos::ChromeUserManagerImpl::RegisterPrefs(registry); 311 chromeos::ChromeUserManagerImpl::RegisterPrefs(registry);
310 chromeos::DataPromoNotification::RegisterPrefs(registry); 312 chromeos::DataPromoNotification::RegisterPrefs(registry);
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 translate::TranslatePrefs::MigrateUserPrefs(profile_prefs, 562 translate::TranslatePrefs::MigrateUserPrefs(profile_prefs,
561 prefs::kAcceptLanguages); 563 prefs::kAcceptLanguages);
562 564
563 #if defined(OS_CHROMEOS) && defined(ENABLE_APP_LIST) 565 #if defined(OS_CHROMEOS) && defined(ENABLE_APP_LIST)
564 // Added 02/2015. 566 // Added 02/2015.
565 MigrateGoogleNowPrefs(profile); 567 MigrateGoogleNowPrefs(profile);
566 #endif 568 #endif
567 } 569 }
568 570
569 } // namespace chrome 571 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698