DescriptionFix a crash caused by unknown saved language.
The language index in the dump referred by the crbug is left to -1, meaning that the language passed to TranslateInfoBarDelegate's constructor...
The call stack showed that the call came from an auto translate preference, so my only guess would be that a preference was saved for a language that is not available anymore, so I added code to protect against that.
BUG=93291
TEST=TranslateManagerTest.UnsupportedSavedLanguage
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98661
Patch Set 1 #Patch Set 2 : '' #
Messages
Total messages: 3 (0 generated)
|