Make DetectEncoding() failed when ucsdet_detect() returls NULL.

In some cases, DetectEncoding() crashes and the reason may be becasue
ucsdet_detect() returns NULL with no error status.
(cf. http://crosbug.com/15691)

BUG=http://crosbug.com/15691
TEST=none

Review URL: http://codereview.chromium.org/7064039

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86509 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: f7e7ed6aaf600d99e9db6a4af51eec9d8983cb84
1 file changed
tree: 1db7c094e07934516357961264ee89b070402fb4
  1. base/
  2. build/
  3. ipc/
  4. testing/
  5. third_party/