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

Unified Diff: chrome/browser/chrome_content_browser_client.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
« no previous file with comments | « chrome/browser/character_encoding_unittest.cc ('k') | chrome/browser/prefs/browser_prefs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index d5313df0c80f122702a07abb295280f32ee1b6a8..f3b8bcb45f8670daf40870d18e2a0d8ab4da70e6 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -1339,7 +1339,7 @@ bool ChromeContentBrowserClient::ShouldAssignSiteForURL(const GURL& url) {
std::string ChromeContentBrowserClient::GetCanonicalEncodingNameByAliasName(
const std::string& alias_name) {
- return CharacterEncoding::GetCanonicalEncodingNameByAliasName(alias_name);
+ return ::GetCanonicalEncodingNameByAliasName(alias_name);
}
namespace {
@@ -2412,8 +2412,7 @@ void ChromeContentBrowserClient::OverrideWebkitPrefs(
web_prefs->password_echo_enabled = browser_defaults::kPasswordEchoEnabled;
#endif
- web_prefs->uses_universal_detector =
- prefs->GetBoolean(prefs::kWebKitUsesUniversalDetector);
+ web_prefs->uses_universal_detector = true; // autodetection is always on.
web_prefs->text_areas_are_resizable =
prefs->GetBoolean(prefs::kWebKitTextAreasAreResizable);
web_prefs->hyperlink_auditing_enabled =
@@ -2432,8 +2431,7 @@ void ChromeContentBrowserClient::OverrideWebkitPrefs(
#endif
// Make sure we will set the default_encoding with canonical encoding name.
- web_prefs->default_encoding =
- CharacterEncoding::GetCanonicalEncodingNameByAliasName(
+ web_prefs->default_encoding = GetCanonicalEncodingNameByAliasName(
web_prefs->default_encoding);
if (web_prefs->default_encoding.empty()) {
prefs->ClearPref(prefs::kDefaultCharset);
« no previous file with comments | « chrome/browser/character_encoding_unittest.cc ('k') | chrome/browser/prefs/browser_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698