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

Issue 2822032: TranslateInfoBarDelegate2 were leaked. (Closed)

Created:
10 years, 6 months ago by Jay Civelli
Modified:
9 years, 7 months ago
Reviewers:
sky
CC:
chromium-reviews, ben+cc_chromium.org, Paweł Hajdan Jr.
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

TranslateInfoBarDelegate2 were leaked. (Yikes!) This revealed that the NormalTranslate unit-test was incorrect (it was not testing that changing the source or target language from the after translate infobar causes a translation). This also revealed that returning reference string in the delegate is not a brilliant idea as when we switch infobars, the new infobar might be using a string from the old infobar that might have been deleted. BUG=None TEST=Linux heap check bot should be green. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=50913

Patch Set 1 #

Patch Set 2 : Fixed unit-test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -18 lines) Patch
M chrome/browser/translate/translate_infobar_delegate2.h View 1 3 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/translate/translate_infobar_delegate2.cc View 1 3 chunks +10 lines, -6 lines 0 comments Download
M chrome/browser/translate/translate_manager2_unittest.cc View 1 chunk +26 lines, -7 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Jay Civelli
10 years, 6 months ago (2010-06-25 19:55:58 UTC) #1
sky
LGTM
10 years, 6 months ago (2010-06-25 21:12:34 UTC) #2
Jay Civelli
Turned out a unit-test was now failing. Fixed the test and a possible deleted memory ...
10 years, 6 months ago (2010-06-25 21:51:52 UTC) #3
sky
10 years, 6 months ago (2010-06-25 21:58:12 UTC) #4
LGTM

Powered by Google App Engine
This is Rietveld 408576698