Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 "apps/prefs.h" | 7 #include "apps/prefs.h" |
| 8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
| 9 #include "base/prefs/pref_registry_simple.h" | 9 #include "base/prefs/pref_registry_simple.h" |
| 10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 42 #include "chrome/browser/metrics/metrics_service.h" | 42 #include "chrome/browser/metrics/metrics_service.h" |
| 43 #include "chrome/browser/metrics/variations/variations_service.h" | 43 #include "chrome/browser/metrics/variations/variations_service.h" |
| 44 #include "chrome/browser/net/http_server_properties_manager.h" | 44 #include "chrome/browser/net/http_server_properties_manager.h" |
| 45 #include "chrome/browser/net/net_pref_observer.h" | 45 #include "chrome/browser/net/net_pref_observer.h" |
| 46 #include "chrome/browser/net/predictor.h" | 46 #include "chrome/browser/net/predictor.h" |
| 47 #include "chrome/browser/net/pref_proxy_config_tracker_impl.h" | 47 #include "chrome/browser/net/pref_proxy_config_tracker_impl.h" |
| 48 #include "chrome/browser/net/ssl_config_service_manager.h" | 48 #include "chrome/browser/net/ssl_config_service_manager.h" |
| 49 #include "chrome/browser/network_time/network_time_service.h" | 49 #include "chrome/browser/network_time/network_time_service.h" |
| 50 #include "chrome/browser/notifications/desktop_notification_service.h" | 50 #include "chrome/browser/notifications/desktop_notification_service.h" |
| 51 #include "chrome/browser/notifications/notification_prefs_manager.h" | 51 #include "chrome/browser/notifications/notification_prefs_manager.h" |
| 52 #if !defined(OS_ANDROID) | |
| 53 #include "chrome/browser/notifications/sync_notifier/chrome_notifier_service.h" | |
| 54 #endif // OS_ANDROID | |
| 55 #include "chrome/browser/password_manager/password_generation_manager.h" | 52 #include "chrome/browser/password_manager/password_generation_manager.h" |
| 56 #include "chrome/browser/password_manager/password_manager.h" | 53 #include "chrome/browser/password_manager/password_manager.h" |
| 57 #include "chrome/browser/pepper_flash_settings_manager.h" | 54 #include "chrome/browser/pepper_flash_settings_manager.h" |
| 58 #include "chrome/browser/plugins/plugin_finder.h" | 55 #include "chrome/browser/plugins/plugin_finder.h" |
| 59 #include "chrome/browser/prefs/incognito_mode_prefs.h" | 56 #include "chrome/browser/prefs/incognito_mode_prefs.h" |
| 60 #include "chrome/browser/prefs/pref_metrics_service.h" | 57 #include "chrome/browser/prefs/pref_metrics_service.h" |
| 61 #include "chrome/browser/prefs/pref_service_syncable.h" | 58 #include "chrome/browser/prefs/pref_service_syncable.h" |
| 62 #include "chrome/browser/prefs/session_startup_pref.h" | 59 #include "chrome/browser/prefs/session_startup_pref.h" |
| 63 #include "chrome/browser/printing/cloud_print/cloud_print_url.h" | 60 #include "chrome/browser/printing/cloud_print/cloud_print_url.h" |
| 64 #include "chrome/browser/printing/print_dialog_cloud.h" | 61 #include "chrome/browser/printing/print_dialog_cloud.h" |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 163 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h" | 160 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h" |
| 164 #else | 161 #else |
| 165 #include "chrome/browser/extensions/default_apps.h" | 162 #include "chrome/browser/extensions/default_apps.h" |
| 166 #endif | 163 #endif |
| 167 | 164 |
| 168 #if defined(USE_ASH) | 165 #if defined(USE_ASH) |
| 169 #include "chrome/browser/ui/ash/chrome_launcher_prefs.h" | 166 #include "chrome/browser/ui/ash/chrome_launcher_prefs.h" |
| 170 #endif | 167 #endif |
| 171 | 168 |
| 172 #if defined(OS_ANDROID) | 169 #if defined(OS_ANDROID) |
| 170 #include "chrome/browser/android/new_tab_page_prefs.h" | |
| 173 #include "chrome/browser/ui/webui/ntp/android/partner_bookmarks_shim.h" | 171 #include "chrome/browser/ui/webui/ntp/android/partner_bookmarks_shim.h" |
| 174 #include "chrome/browser/ui/webui/ntp/android/promo_handler.h" | 172 #include "chrome/browser/ui/webui/ntp/android/promo_handler.h" |
| 175 #else | 173 #else |
| 174 #include "chrome/browser/notifications/sync_notifier/chrome_notifier_service.h" | |
| 176 #include "chrome/browser/profile_resetter/automatic_profile_resetter_factory.h" | 175 #include "chrome/browser/profile_resetter/automatic_profile_resetter_factory.h" |
| 177 #include "chrome/browser/ui/autofill/generated_credit_card_bubble_controller.h" | 176 #include "chrome/browser/ui/autofill/generated_credit_card_bubble_controller.h" |
| 178 #endif | 177 #endif |
| 179 | 178 |
| 180 #if defined(ENABLE_PLUGIN_INSTALLATION) | 179 #if defined(ENABLE_PLUGIN_INSTALLATION) |
| 181 #include "chrome/browser/plugins/plugins_resource_service.h" | 180 #include "chrome/browser/plugins/plugins_resource_service.h" |
| 182 #endif | 181 #endif |
| 183 | 182 |
| 184 #if defined(OS_WIN) | 183 #if defined(OS_WIN) |
| 185 #include "chrome/browser/apps/app_launch_for_metro_restart_win.h" | 184 #include "chrome/browser/apps/app_launch_for_metro_restart_win.h" |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 354 PrefsTabHelper::RegisterProfilePrefs(registry); | 353 PrefsTabHelper::RegisterProfilePrefs(registry); |
| 355 Profile::RegisterProfilePrefs(registry); | 354 Profile::RegisterProfilePrefs(registry); |
| 356 ProfileImpl::RegisterProfilePrefs(registry); | 355 ProfileImpl::RegisterProfilePrefs(registry); |
| 357 PromoResourceService::RegisterProfilePrefs(registry); | 356 PromoResourceService::RegisterProfilePrefs(registry); |
| 358 ProtocolHandlerRegistry::RegisterProfilePrefs(registry); | 357 ProtocolHandlerRegistry::RegisterProfilePrefs(registry); |
| 359 RegisterBrowserUserPrefs(registry); | 358 RegisterBrowserUserPrefs(registry); |
| 360 SessionStartupPref::RegisterProfilePrefs(registry); | 359 SessionStartupPref::RegisterProfilePrefs(registry); |
| 361 TemplateURLPrepopulateData::RegisterProfilePrefs(registry); | 360 TemplateURLPrepopulateData::RegisterProfilePrefs(registry); |
| 362 TranslatePrefs::RegisterProfilePrefs(registry); | 361 TranslatePrefs::RegisterProfilePrefs(registry); |
| 363 | 362 |
| 363 #if defined(OS_ANDROID) | |
|
Pam (message me for reviews)
2013/11/02 08:27:25
Please put this in with the other OS_ANDROID secti
apiccion
2013/11/03 17:52:59
Done.
| |
| 364 NewTabPagePrefs::RegisterProfilePrefs(registry); | |
| 365 #endif | |
| 366 | |
| 364 #if defined(ENABLE_AUTOFILL_DIALOG) | 367 #if defined(ENABLE_AUTOFILL_DIALOG) |
| 365 autofill::AutofillDialogController::RegisterProfilePrefs(registry); | 368 autofill::AutofillDialogController::RegisterProfilePrefs(registry); |
| 366 #endif | 369 #endif |
| 367 | 370 |
| 368 #if defined(ENABLE_CONFIGURATION_POLICY) | 371 #if defined(ENABLE_CONFIGURATION_POLICY) |
| 369 policy::URLBlacklistManager::RegisterProfilePrefs(registry); | 372 policy::URLBlacklistManager::RegisterProfilePrefs(registry); |
| 370 #endif | 373 #endif |
| 371 | 374 |
| 372 #if defined(ENABLE_EXTENSIONS) | 375 #if defined(ENABLE_EXTENSIONS) |
| 373 extensions::ActivityLog::RegisterProfilePrefs(registry); | 376 extensions::ActivityLog::RegisterProfilePrefs(registry); |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 561 } | 564 } |
| 562 local_state->ClearPref(prefs::kLastPromptedGoogleURL); | 565 local_state->ClearPref(prefs::kLastPromptedGoogleURL); |
| 563 | 566 |
| 564 current_version |= GOOGLE_URL_TRACKER_PREFS; | 567 current_version |= GOOGLE_URL_TRACKER_PREFS; |
| 565 local_state->SetInteger(prefs::kMultipleProfilePrefMigration, | 568 local_state->SetInteger(prefs::kMultipleProfilePrefMigration, |
| 566 current_version); | 569 current_version); |
| 567 } | 570 } |
| 568 } | 571 } |
| 569 | 572 |
| 570 } // namespace chrome | 573 } // namespace chrome |
| OLD | NEW |