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 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
632 registry->RegisterBooleanPref(kGoogleGeolocationAccessEnabled, false); | 632 registry->RegisterBooleanPref(kGoogleGeolocationAccessEnabled, false); |
633 #endif | 633 #endif |
634 | 634 |
635 registry->RegisterBooleanPref(kCheckDefaultBrowser, true); | 635 registry->RegisterBooleanPref(kCheckDefaultBrowser, true); |
636 | 636 |
637 registry->RegisterBooleanPref(kDesktopSearchRedirectionInfobarShownPref, | 637 registry->RegisterBooleanPref(kDesktopSearchRedirectionInfobarShownPref, |
638 false); | 638 false); |
639 | 639 |
640 registry->RegisterBooleanPref(kNetworkPredictionEnabled, true); | 640 registry->RegisterBooleanPref(kNetworkPredictionEnabled, true); |
641 registry->RegisterBooleanPref(kDisableSpdy, false); | 641 registry->RegisterBooleanPref(kDisableSpdy, false); |
| 642 registry->RegisterStringPref(prefs::kStaticEncodings, std::string()); |
| 643 registry->RegisterStringPref(prefs::kRecentlySelectedEncoding, std::string()); |
642 } | 644 } |
643 | 645 |
644 void RegisterUserProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { | 646 void RegisterUserProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { |
645 RegisterProfilePrefs(registry); | 647 RegisterProfilePrefs(registry); |
646 | 648 |
647 #if defined(OS_CHROMEOS) | 649 #if defined(OS_CHROMEOS) |
648 chromeos::PowerPrefs::RegisterUserProfilePrefs(registry); | 650 chromeos::PowerPrefs::RegisterUserProfilePrefs(registry); |
649 #endif | 651 #endif |
650 } | 652 } |
651 | 653 |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
732 } | 734 } |
733 profile_prefs->ClearPref(kCheckDefaultBrowser); | 735 profile_prefs->ClearPref(kCheckDefaultBrowser); |
734 | 736 |
735 // Added 5/2016. | 737 // Added 5/2016. |
736 profile_prefs->ClearPref(kDesktopSearchRedirectionInfobarShownPref); | 738 profile_prefs->ClearPref(kDesktopSearchRedirectionInfobarShownPref); |
737 | 739 |
738 // Added 7/2016. | 740 // Added 7/2016. |
739 DeleteWebRTCIdentityStoreDB(profile); | 741 DeleteWebRTCIdentityStoreDB(profile); |
740 profile_prefs->ClearPref(kNetworkPredictionEnabled); | 742 profile_prefs->ClearPref(kNetworkPredictionEnabled); |
741 profile_prefs->ClearPref(kDisableSpdy); | 743 profile_prefs->ClearPref(kDisableSpdy); |
| 744 |
| 745 // Added 8/2016. |
| 746 profile_prefs->ClearPref(prefs::kStaticEncodings); |
| 747 profile_prefs->ClearPref(prefs::kRecentlySelectedEncoding); |
742 } | 748 } |
743 | 749 |
744 } // namespace chrome | 750 } // namespace chrome |
OLD | NEW |