Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(354)

Side by Side Diff: chrome/browser/prefs/browser_prefs.cc

Issue 2254273003: Remove text encoding UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698