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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 119 | 119 |
| 120 #if defined(ENABLE_PLUGIN_INSTALLATION) | 120 #if defined(ENABLE_PLUGIN_INSTALLATION) |
| 121 #include "chrome/browser/plugins/plugins_resource_service.h" | 121 #include "chrome/browser/plugins/plugins_resource_service.h" |
| 122 #endif | 122 #endif |
| 123 | 123 |
| 124 #if defined(OS_ANDROID) | 124 #if defined(OS_ANDROID) |
| 125 #include "chrome/browser/android/bookmarks/partner_bookmarks_shim.h" | 125 #include "chrome/browser/android/bookmarks/partner_bookmarks_shim.h" |
| 126 #include "chrome/browser/android/new_tab_page_prefs.h" | 126 #include "chrome/browser/android/new_tab_page_prefs.h" |
| 127 #else | 127 #else |
| 128 #include "chrome/browser/notifications/sync_notifier/chrome_notifier_service.h" | 128 #include "chrome/browser/notifications/sync_notifier/chrome_notifier_service.h" |
| 129 #include "chrome/browser/profile_resetter/automatic_profile_resetter_factory.h" | |
| 130 #include "chrome/browser/ui/autofill/generated_credit_card_bubble_controller.h" | 129 #include "chrome/browser/ui/autofill/generated_credit_card_bubble_controller.h" |
| 131 #endif | 130 #endif |
| 132 | 131 |
| 133 #if defined(OS_CHROMEOS) | 132 #if defined(OS_CHROMEOS) |
| 134 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" | 133 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" |
| 135 #include "chrome/browser/chromeos/attestation/platform_verification_flow.h" | 134 #include "chrome/browser/chromeos/attestation/platform_verification_flow.h" |
| 136 #include "chrome/browser/chromeos/audio/audio_devices_pref_handler_impl.h" | 135 #include "chrome/browser/chromeos/audio/audio_devices_pref_handler_impl.h" |
| 137 #include "chrome/browser/chromeos/customization_document.h" | 136 #include "chrome/browser/chromeos/customization_document.h" |
| 138 #include "chrome/browser/chromeos/display/display_preferences.h" | 137 #include "chrome/browser/chromeos/display/display_preferences.h" |
| 139 #include "chrome/browser/chromeos/extensions/echo_private_api.h" | 138 #include "chrome/browser/chromeos/extensions/echo_private_api.h" |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 264 | 263 |
| 265 #if defined(ENABLE_PLUGIN_INSTALLATION) | 264 #if defined(ENABLE_PLUGIN_INSTALLATION) |
| 266 PluginsResourceService::RegisterPrefs(registry); | 265 PluginsResourceService::RegisterPrefs(registry); |
| 267 #endif | 266 #endif |
| 268 | 267 |
| 269 #if defined(ENABLE_TASK_MANAGER) | 268 #if defined(ENABLE_TASK_MANAGER) |
| 270 TaskManager::RegisterPrefs(registry); | 269 TaskManager::RegisterPrefs(registry); |
| 271 #endif // defined(ENABLE_TASK_MANAGER) | 270 #endif // defined(ENABLE_TASK_MANAGER) |
| 272 | 271 |
| 273 #if !defined(OS_ANDROID) | 272 #if !defined(OS_ANDROID) |
| 274 AutomaticProfileResetterFactory::RegisterPrefs(registry); | |
|
battre
2014/05/08 11:46:14
The preference should be cleared in MigrateUserPre
engedy
2014/07/30 09:07:21
I have removed the respective prefs completely.
C
battre
2014/07/30 09:11:08
As I said above, I think the policy is to clear it
engedy
2014/07/30 11:45:11
Done. I have added code to clear both the local st
| |
| 275 BackgroundModeManager::RegisterPrefs(registry); | 273 BackgroundModeManager::RegisterPrefs(registry); |
| 276 RegisterBrowserPrefs(registry); | 274 RegisterBrowserPrefs(registry); |
| 277 #if !defined(OS_CHROMEOS) | 275 #if !defined(OS_CHROMEOS) |
| 278 RegisterDefaultBrowserPromptPrefs(registry); | 276 RegisterDefaultBrowserPromptPrefs(registry); |
| 279 #endif // !defined(OS_CHROMEOS) | 277 #endif // !defined(OS_CHROMEOS) |
| 280 #endif // !defined(OS_ANDROID) | 278 #endif // !defined(OS_ANDROID) |
| 281 | 279 |
| 282 #if defined(OS_CHROMEOS) | 280 #if defined(OS_CHROMEOS) |
| 283 chromeos::AudioDevicesPrefHandlerImpl::RegisterPrefs(registry); | 281 chromeos::AudioDevicesPrefHandlerImpl::RegisterPrefs(registry); |
| 284 chromeos::ChargerReplacementHandler::RegisterPrefs(registry); | 282 chromeos::ChargerReplacementHandler::RegisterPrefs(registry); |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 569 local_state->SetInteger(prefs::kMultipleProfilePrefMigration, | 567 local_state->SetInteger(prefs::kMultipleProfilePrefMigration, |
| 570 current_version); | 568 current_version); |
| 571 } | 569 } |
| 572 | 570 |
| 573 #if defined(OS_CHROMEOS) | 571 #if defined(OS_CHROMEOS) |
| 574 chromeos::default_pinned_apps_field_trial::MigratePrefs(local_state); | 572 chromeos::default_pinned_apps_field_trial::MigratePrefs(local_state); |
| 575 #endif | 573 #endif |
| 576 } | 574 } |
| 577 | 575 |
| 578 } // namespace chrome | 576 } // namespace chrome |
| OLD | NEW |