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/files/file_util.h" | 9 #include "base/files/file_util.h" |
| 10 #include "base/metrics/histogram_macros.h" | 10 #include "base/metrics/histogram_macros.h" |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 121 #if BUILDFLAG(ENABLE_BACKGROUND) | 121 #if BUILDFLAG(ENABLE_BACKGROUND) |
| 122 #include "chrome/browser/background/background_mode_manager.h" | 122 #include "chrome/browser/background/background_mode_manager.h" |
| 123 #endif | 123 #endif |
| 124 | 124 |
| 125 #if BUILDFLAG(ENABLE_EXTENSIONS) | 125 #if BUILDFLAG(ENABLE_EXTENSIONS) |
| 126 #include "chrome/browser/accessibility/animation_policy_prefs.h" | 126 #include "chrome/browser/accessibility/animation_policy_prefs.h" |
| 127 #include "chrome/browser/apps/shortcut_manager.h" | 127 #include "chrome/browser/apps/shortcut_manager.h" |
| 128 #include "chrome/browser/extensions/activity_log/activity_log.h" | 128 #include "chrome/browser/extensions/activity_log/activity_log.h" |
| 129 #include "chrome/browser/extensions/api/commands/command_service.h" | 129 #include "chrome/browser/extensions/api/commands/command_service.h" |
| 130 #include "chrome/browser/extensions/api/tabs/tabs_api.h" | 130 #include "chrome/browser/extensions/api/tabs/tabs_api.h" |
| 131 #include "chrome/browser/extensions/component_migration_helper.h" | |
| 132 #include "chrome/browser/extensions/extension_web_ui.h" | 131 #include "chrome/browser/extensions/extension_web_ui.h" |
| 133 #include "chrome/browser/extensions/launch_util.h" | 132 #include "chrome/browser/extensions/launch_util.h" |
| 134 #include "chrome/browser/signin/easy_unlock_service.h" | 133 #include "chrome/browser/signin/easy_unlock_service.h" |
| 135 #include "chrome/browser/ui/toolbar/toolbar_actions_bar.h" | 134 #include "chrome/browser/ui/toolbar/toolbar_actions_bar.h" |
| 136 #include "chrome/browser/ui/webui/extensions/extension_settings_handler.h" | 135 #include "chrome/browser/ui/webui/extensions/extension_settings_handler.h" |
| 137 #include "extensions/browser/api/runtime/runtime_api.h" | 136 #include "extensions/browser/api/runtime/runtime_api.h" |
| 138 #include "extensions/browser/extension_prefs.h" | 137 #include "extensions/browser/extension_prefs.h" |
| 139 #endif // BUILDFLAG(ENABLE_EXTENSIONS) | 138 #endif // BUILDFLAG(ENABLE_EXTENSIONS) |
| 140 | 139 |
| 141 #if BUILDFLAG(ENABLE_PLUGIN_INSTALLATION) | 140 #if BUILDFLAG(ENABLE_PLUGIN_INSTALLATION) |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 525 | 524 |
| 526 policy::URLBlacklistManager::RegisterProfilePrefs(registry); | 525 policy::URLBlacklistManager::RegisterProfilePrefs(registry); |
| 527 certificate_transparency::CTPolicyManager::RegisterPrefs(registry); | 526 certificate_transparency::CTPolicyManager::RegisterPrefs(registry); |
| 528 | 527 |
| 529 #if BUILDFLAG(ENABLE_EXTENSIONS) | 528 #if BUILDFLAG(ENABLE_EXTENSIONS) |
| 530 EasyUnlockService::RegisterProfilePrefs(registry); | 529 EasyUnlockService::RegisterProfilePrefs(registry); |
| 531 ExtensionWebUI::RegisterProfilePrefs(registry); | 530 ExtensionWebUI::RegisterProfilePrefs(registry); |
| 532 RegisterAnimationPolicyPrefs(registry); | 531 RegisterAnimationPolicyPrefs(registry); |
| 533 ToolbarActionsBar::RegisterProfilePrefs(registry); | 532 ToolbarActionsBar::RegisterProfilePrefs(registry); |
| 534 extensions::ActivityLog::RegisterProfilePrefs(registry); | 533 extensions::ActivityLog::RegisterProfilePrefs(registry); |
| 535 extensions::ComponentMigrationHelper::RegisterPrefs(registry); | |
| 536 extensions::ExtensionPrefs::RegisterProfilePrefs(registry); | 534 extensions::ExtensionPrefs::RegisterProfilePrefs(registry); |
| 537 extensions::launch_util::RegisterProfilePrefs(registry); | 535 extensions::launch_util::RegisterProfilePrefs(registry); |
| 538 extensions::RuntimeAPI::RegisterPrefs(registry); | 536 extensions::RuntimeAPI::RegisterPrefs(registry); |
| 539 #endif // BUILDFLAG(ENABLE_EXTENSIONS) | 537 #endif // BUILDFLAG(ENABLE_EXTENSIONS) |
| 540 | 538 |
| 541 #if BUILDFLAG(ENABLE_EXTENSIONS) && !defined(OS_ANDROID) | 539 #if BUILDFLAG(ENABLE_EXTENSIONS) && !defined(OS_ANDROID) |
| 542 // The extension welcome notification requires a build that enables extensions | 540 // The extension welcome notification requires a build that enables extensions |
| 543 // and notifications, and uses the UI message center. | 541 // and notifications, and uses the UI message center. |
| 544 ExtensionWelcomeNotification::RegisterProfilePrefs(registry); | 542 ExtensionWelcomeNotification::RegisterProfilePrefs(registry); |
| 545 #endif | 543 #endif |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 734 if (!hide_pref->IsDefaultValue()) { | 732 if (!hide_pref->IsDefaultValue()) { |
| 735 bool hide_pref_value = | 733 bool hide_pref_value = |
| 736 profile_prefs->GetBoolean(prefs::kHideFullscreenToolbar); | 734 profile_prefs->GetBoolean(prefs::kHideFullscreenToolbar); |
| 737 profile_prefs->SetBoolean(prefs::kShowFullscreenToolbar, !hide_pref_value); | 735 profile_prefs->SetBoolean(prefs::kShowFullscreenToolbar, !hide_pref_value); |
| 738 profile_prefs->ClearPref(prefs::kHideFullscreenToolbar); | 736 profile_prefs->ClearPref(prefs::kHideFullscreenToolbar); |
| 739 } | 737 } |
| 740 #endif | 738 #endif |
| 741 | 739 |
| 742 // Added 12/1015. | 740 // Added 12/1015. |
| 743 profile_prefs->ClearPref(kURLsToRestoreOnStartupOld); | 741 profile_prefs->ClearPref(kURLsToRestoreOnStartupOld); |
| 744 profile_prefs->ClearPref(kRestoreStartupURLsMigrationTime); | 742 profile_prefs->ClearPref(kRestoreStartupURLsMigrationTime); |
|
gab
2017/02/08 17:47:30
Remove year+ old migrations (there is a rolling cl
takumif
2017/02/08 18:12:14
Done.
| |
| 745 | 743 |
| 746 // Added 12/2015. | 744 // Added 12/2015. |
| 747 profile_prefs->ClearPref(kRestoreOnStartupMigrated); | 745 profile_prefs->ClearPref(kRestoreOnStartupMigrated); |
| 748 | 746 |
| 749 #if defined(USE_AURA) | 747 #if defined(USE_AURA) |
| 750 // Added 1/2016 | 748 // Added 1/2016 |
| 751 profile_prefs->ClearPref(kFlingMaxCancelToDownTimeInMs); | 749 profile_prefs->ClearPref(kFlingMaxCancelToDownTimeInMs); |
| 752 profile_prefs->ClearPref(kFlingMaxTapGapTimeInMs); | 750 profile_prefs->ClearPref(kFlingMaxTapGapTimeInMs); |
| 753 profile_prefs->ClearPref(kTabScrubActivationDelayInMs); | 751 profile_prefs->ClearPref(kTabScrubActivationDelayInMs); |
| 754 profile_prefs->ClearPref(kMaxSeparationForGestureTouchesInPixels); | 752 profile_prefs->ClearPref(kMaxSeparationForGestureTouchesInPixels); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 789 profile_prefs->ClearPref(kNetworkPredictionEnabled); | 787 profile_prefs->ClearPref(kNetworkPredictionEnabled); |
| 790 profile_prefs->ClearPref(kDisableSpdy); | 788 profile_prefs->ClearPref(kDisableSpdy); |
| 791 | 789 |
| 792 // Added 8/2016. | 790 // Added 8/2016. |
| 793 profile_prefs->ClearPref(kStaticEncodings); | 791 profile_prefs->ClearPref(kStaticEncodings); |
| 794 profile_prefs->ClearPref(kRecentlySelectedEncoding); | 792 profile_prefs->ClearPref(kRecentlySelectedEncoding); |
| 795 | 793 |
| 796 // Added 9/2016. | 794 // Added 9/2016. |
| 797 profile_prefs->ClearPref(kWebKitUsesUniversalDetector); | 795 profile_prefs->ClearPref(kWebKitUsesUniversalDetector); |
| 798 profile_prefs->ClearPref(kWebKitAllowDisplayingInsecureContent); | 796 profile_prefs->ClearPref(kWebKitAllowDisplayingInsecureContent); |
| 797 | |
| 798 #if BUILDFLAG(ENABLE_EXTENSIONS) | |
| 799 // Added 2/2017. | |
| 800 profile_prefs->ClearPref(prefs::kToolbarMigratedComponentActionStatus); | |
| 801 #endif | |
| 799 } | 802 } |
| 800 | 803 |
| 801 } // namespace chrome | 804 } // namespace chrome |
| OLD | NEW |