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

Unified 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: rebased 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/prefs/browser_prefs.cc
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index c3d1343e23acd082cb2cb20245647e5d065a29b7..139979108c3eef6b4da112afebc6f18ca0e3bbb1 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -642,6 +642,8 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
registry->RegisterBooleanPref(kNetworkPredictionEnabled, true);
registry->RegisterBooleanPref(kDisableSpdy, false);
+ registry->RegisterStringPref(prefs::kStaticEncodings, std::string());
+ registry->RegisterStringPref(prefs::kRecentlySelectedEncoding, std::string());
}
void RegisterUserProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
@@ -742,6 +744,10 @@ void MigrateObsoleteProfilePrefs(Profile* profile) {
DeleteWebRTCIdentityStoreDB(profile);
profile_prefs->ClearPref(kNetworkPredictionEnabled);
profile_prefs->ClearPref(kDisableSpdy);
+
+ // Added 8/2016.
+ profile_prefs->ClearPref(prefs::kStaticEncodings);
+ profile_prefs->ClearPref(prefs::kRecentlySelectedEncoding);
}
} // namespace chrome
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/resources/options/font_settings.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698