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

Unified Diff: chrome/browser/ui/prefs/prefs_tab_helper.cc

Issue 2293373002: Remove unused prefs/api/resource for setPageEncoding (Closed)
Patch Set: comments Created 4 years, 3 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/ui/prefs/prefs_tab_helper.cc
diff --git a/chrome/browser/ui/prefs/prefs_tab_helper.cc b/chrome/browser/ui/prefs/prefs_tab_helper.cc
index 0f2eb85601588380727b9c40b3173b26670d942f..a10d5bbb39cca48ebbf3effc22b2d5ca1ff8da45 100644
--- a/chrome/browser/ui/prefs/prefs_tab_helper.cc
+++ b/chrome/browser/ui/prefs/prefs_tab_helper.cc
@@ -65,7 +65,7 @@ DEFINE_WEB_CONTENTS_USER_DATA_KEY(PrefsTabHelper);
namespace {
// The list of prefs we want to observe.
-const char* kPrefsToObserve[] = {
+const char* const kPrefsToObserve[] = {
#if defined(ENABLE_EXTENSIONS)
prefs::kAnimationPolicy,
#endif
@@ -91,7 +91,6 @@ const char* kPrefsToObserve[] = {
prefs::kWebKitPluginsEnabled,
prefs::kWebkitTabsToLinks,
prefs::kWebKitTextAreasAreResizable,
- prefs::kWebKitUsesUniversalDetector,
prefs::kWebKitWebSecurityEnabled,
};
@@ -601,7 +600,7 @@ void PrefsTabHelper::RegisterProfilePrefs(
IDS_MINIMUM_LOGICAL_FONT_SIZE);
registry->RegisterBooleanPref(
prefs::kWebKitUsesUniversalDetector,
- l10n_util::GetStringUTF8(IDS_USES_UNIVERSAL_DETECTOR) == "true",
+ true,
user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
}

Powered by Google App Engine
This is Rietveld 408576698