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

Unified Diff: base/i18n/encoding_detection.cc

Issue 2746843002: Enable CED HTML5 mode (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | third_party/WebKit/Source/platform/text/TextEncodingDetector.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/i18n/encoding_detection.cc
diff --git a/base/i18n/encoding_detection.cc b/base/i18n/encoding_detection.cc
index 56582511f306ed785496b582f8bd258e97a4d6ee..cad67ce0ac9e2c20a4dc8ca5d14d1f0d2a150cc4 100644
--- a/base/i18n/encoding_detection.cc
+++ b/base/i18n/encoding_detection.cc
@@ -23,18 +23,6 @@ bool DetectEncoding(const std::string& text, std::string* encoding) {
if (enc == UNKNOWN_ENCODING)
return false;
- // 7-bit encodings (except ISO-2022-JP) are not supported in web standard.
- // Mark them as ascii to keep the raw bytes intact.
- switch (enc) {
- case HZ_GB_2312:
- case ISO_2022_KR:
- case ISO_2022_CN:
- case UTF7:
- enc = ASCII_7BIT;
- break;
- default:
- break;
- }
*encoding = MimeEncodingName(enc);
return true;
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/text/TextEncodingDetector.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698