[Importer] Allow Chrome to import bookmark files without a charset specified.
commit0f6b38ae3f1f4784f35c1c197db4230bfacd67e6
authorisherman <isherman@chromium.org>
Thu, 14 May 2015 21:10:08 +0000 (14 14:10 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 14 May 2015 21:10:13 +0000 (14 21:10 +0000)
tree3829172a464612e0e1c6998bf006062ac79976fb
parentf4d54df384a18352e3e54d16c408ec72dfe61f6f
[Importer] Allow Chrome to import bookmark files without a charset specified.

Internet Explorer will, apparently, generate bookmark files without any charset
specified. Fall back to utf-8 in that case, so that import can still succeed.

BUG=460423
TEST=unit_tests
R=gab@chromium.org

Review URL: https://codereview.chromium.org/1119453003

Cr-Commit-Position: refs/heads/master@{#329930}
chrome/test/data/bookmark_html_reader/ie_sans_charset.html [new file with mode: 0644]
chrome/utility/importer/bookmark_html_reader.cc
chrome/utility/importer/bookmark_html_reader_unittest.cc