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; |
} |