Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Issue 7764003: Fix a crash caused by unknown saved language. (Closed)

Created:
9 years, 4 months ago by MAD
Modified:
9 years, 3 months ago
CC:
chromium-reviews, dfilimon, feldstein
Visibility:
Public.

Description

Fix 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 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -2 lines) Patch
M chrome/browser/translate/translate_infobar_delegate.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/translate/translate_manager.cc View 1 1 chunk +7 lines, -2 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
MAD
Not completely sure if this is the source of the crash, but it's highly probable... ...
9 years, 4 months ago (2011-08-26 19:52:20 UTC) #1
Jay Civelli
LGTM
9 years, 4 months ago (2011-08-26 21:58:43 UTC) #2
commit-bot: I haz the power
9 years, 3 months ago (2011-08-29 18:46:01 UTC) #3
Change committed as 98661

Powered by Google App Engine
This is Rietveld 408576698