Modify TranslateLanguageList to support recent server side format
commitfe10ec77ad100cace57e954d124604e15e96dea4
authortoyoshim <toyoshim@chromium.org>
Fri, 19 Jun 2015 11:09:25 +0000 (19 04:09 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 19 Jun 2015 11:09:47 +0000 (19 11:09 +0000)
treef7881c17daea2d7729a293f837efa26c2a71c85e
parente8b5948edddc1575102209b60e0961ba5587dc24
Modify TranslateLanguageList to support recent server side format

After the recent server side update, the format for supporting language
list that Google Translate server returns was changed.

This patch slightly modifies TranslateLanguageList to parse the list
more flexibly in order to support the recent server response.

BUG=502107

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

Cr-Commit-Position: refs/heads/master@{#335243}
components/translate/core/browser/translate_language_list.cc