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 <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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 146 #if defined(OS_ANDROID) | 146 #if defined(OS_ANDROID) |
| 147 #include "chrome/browser/android/bookmarks/partner_bookmarks_shim.h" | 147 #include "chrome/browser/android/bookmarks/partner_bookmarks_shim.h" |
| 148 #include "chrome/browser/android/new_tab_page_prefs.h" | 148 #include "chrome/browser/android/new_tab_page_prefs.h" |
| 149 #else | 149 #else |
| 150 #include "chrome/browser/profile_resetter/automatic_profile_resetter_factory.h" | 150 #include "chrome/browser/profile_resetter/automatic_profile_resetter_factory.h" |
| 151 #include "chrome/browser/ui/autofill/generated_credit_card_bubble_controller.h" | 151 #include "chrome/browser/ui/autofill/generated_credit_card_bubble_controller.h" |
| 152 #endif | 152 #endif |
| 153 | 153 |
| 154 #if !defined(OS_ANDROID) && !defined(OS_IOS) | 154 #if !defined(OS_ANDROID) && !defined(OS_IOS) |
| 155 #include "chrome/browser/signin/signin_promo.h" | 155 #include "chrome/browser/signin/signin_promo.h" |
| 156 #include "chrome/browser/ui/webui/foreign_session_handler.h" | |
| 156 #endif | 157 #endif |
| 157 | 158 |
| 158 #if defined(OS_CHROMEOS) | 159 #if defined(OS_CHROMEOS) |
| 159 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" | 160 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" |
| 160 #include "chrome/browser/chromeos/customization/customization_document.h" | 161 #include "chrome/browser/chromeos/customization/customization_document.h" |
| 161 #include "chrome/browser/chromeos/display/display_preferences.h" | 162 #include "chrome/browser/chromeos/display/display_preferences.h" |
| 162 #include "chrome/browser/chromeos/extensions/echo_private_api.h" | 163 #include "chrome/browser/chromeos/extensions/echo_private_api.h" |
| 163 #include "chrome/browser/chromeos/file_system_provider/registry.h" | 164 #include "chrome/browser/chromeos/file_system_provider/registry.h" |
| 164 #include "chrome/browser/chromeos/first_run/first_run.h" | 165 #include "chrome/browser/chromeos/first_run/first_run.h" |
| 165 #include "chrome/browser/chromeos/login/saml/saml_offline_signin_limiter.h" | 166 #include "chrome/browser/chromeos/login/saml/saml_offline_signin_limiter.h" |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 415 #if defined(ENABLE_CONFIGURATION_POLICY) | 416 #if defined(ENABLE_CONFIGURATION_POLICY) |
| 416 policy::URLBlacklistManager::RegisterProfilePrefs(registry); | 417 policy::URLBlacklistManager::RegisterProfilePrefs(registry); |
| 417 #endif | 418 #endif |
| 418 | 419 |
| 419 #if defined(ENABLE_EXTENSIONS) | 420 #if defined(ENABLE_EXTENSIONS) |
| 420 EasyUnlockService::RegisterProfilePrefs(registry); | 421 EasyUnlockService::RegisterProfilePrefs(registry); |
| 421 extensions::ActivityLog::RegisterProfilePrefs(registry); | 422 extensions::ActivityLog::RegisterProfilePrefs(registry); |
| 422 extensions::launch_util::RegisterProfilePrefs(registry); | 423 extensions::launch_util::RegisterProfilePrefs(registry); |
| 423 ExtensionWebUI::RegisterProfilePrefs(registry); | 424 ExtensionWebUI::RegisterProfilePrefs(registry); |
| 424 extensions::ExtensionPrefs::RegisterProfilePrefs(registry); | 425 extensions::ExtensionPrefs::RegisterProfilePrefs(registry); |
| 425 #if !defined(OS_ANDROID) && !defined(OS_IOS) | 426 #if !defined(OS_ANDROID) && !defined(OS_IOS) |
|
Dan Beam
2015/05/20 18:40:02
i think this might be functionally equivalent... b
Ken Rockot(use gerrit already)
2015/05/20 19:11:24
Yeah, they're effectively equivalent today. This i
| |
| 426 ToolbarActionsBar::RegisterProfilePrefs(registry); | 427 ToolbarActionsBar::RegisterProfilePrefs(registry); |
| 427 extensions::CopresenceService::RegisterProfilePrefs(registry); | 428 extensions::CopresenceService::RegisterProfilePrefs(registry); |
| 428 #endif | 429 #endif |
| 429 RegisterAnimationPolicyPrefs(registry); | 430 RegisterAnimationPolicyPrefs(registry); |
| 430 #endif // defined(ENABLE_EXTENSIONS) | 431 #endif // defined(ENABLE_EXTENSIONS) |
| 431 | 432 |
| 432 #if defined(ENABLE_NOTIFICATIONS) | 433 #if defined(ENABLE_NOTIFICATIONS) |
| 433 DesktopNotificationService::RegisterProfilePrefs(registry); | 434 DesktopNotificationService::RegisterProfilePrefs(registry); |
| 434 #endif | 435 #endif |
| 435 | 436 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 504 #endif | 505 #endif |
| 505 | 506 |
| 506 #if defined(TOOLKIT_VIEWS) | 507 #if defined(TOOLKIT_VIEWS) |
| 507 RegisterBrowserViewProfilePrefs(registry); | 508 RegisterBrowserViewProfilePrefs(registry); |
| 508 RegisterInvertBubbleUserPrefs(registry); | 509 RegisterInvertBubbleUserPrefs(registry); |
| 509 #endif | 510 #endif |
| 510 | 511 |
| 511 #if defined(USE_ASH) | 512 #if defined(USE_ASH) |
| 512 ash::RegisterChromeLauncherUserPrefs(registry); | 513 ash::RegisterChromeLauncherUserPrefs(registry); |
| 513 #endif | 514 #endif |
| 515 | |
| 516 #if !defined(OS_ANDROID) && !defined(OS_IOS) | |
| 517 browser_sync::ForeignSessionHandler::RegisterProfilePrefs(registry); | |
|
Dan Beam
2015/05/20 18:40:02
registering here avoids accidental double registra
| |
| 518 #endif | |
| 514 } | 519 } |
| 515 | 520 |
| 516 void RegisterUserProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { | 521 void RegisterUserProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { |
| 517 RegisterProfilePrefs(registry); | 522 RegisterProfilePrefs(registry); |
| 518 | 523 |
| 519 #if defined(OS_CHROMEOS) | 524 #if defined(OS_CHROMEOS) |
| 520 chromeos::PowerPrefs::RegisterUserProfilePrefs(registry); | 525 chromeos::PowerPrefs::RegisterUserProfilePrefs(registry); |
| 521 #endif | 526 #endif |
| 522 } | 527 } |
| 523 | 528 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 621 host_zoom_dictionary, false /* sanitize_partition_host_zoom_levels */); | 626 host_zoom_dictionary, false /* sanitize_partition_host_zoom_levels */); |
| 622 | 627 |
| 623 // We're done migrating the profile per-host zoom level values, so we clear | 628 // We're done migrating the profile per-host zoom level values, so we clear |
| 624 // them all. | 629 // them all. |
| 625 DictionaryPrefUpdate host_zoom_dictionary_update( | 630 DictionaryPrefUpdate host_zoom_dictionary_update( |
| 626 prefs, prefs::kPerHostZoomLevelsDeprecated); | 631 prefs, prefs::kPerHostZoomLevelsDeprecated); |
| 627 host_zoom_dictionary_update->Clear(); | 632 host_zoom_dictionary_update->Clear(); |
| 628 } | 633 } |
| 629 | 634 |
| 630 } // namespace chrome | 635 } // namespace chrome |
| OLD | NEW |