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

Issue 7246010: Fixed a few valgrind tests by not assuming the UrlFetcher arrives with the same URL. (Closed)

Created:
9 years, 6 months ago by MAD
Modified:
9 years, 6 months ago
Reviewers:
cbentzel, Jay Civelli
CC:
chromium-reviews, Alexander Potapenko, pam+watch_chromium.org, stuartmorgan+watch_chromium.org
Visibility:
Public.

Description

Fixed a few valgrind tests by not assuming the UrlFetcher arrives with the same URL. BUG=87237 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=90463

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -42 lines) Patch
M chrome/browser/browser_main.cc View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/translate/translate_manager.h View 1 2 3 3 chunks +10 lines, -4 lines 0 comments Download
M chrome/browser/translate/translate_manager.cc View 1 2 3 5 chunks +36 lines, -38 lines 1 comment Download

Messages

Total messages: 7 (0 generated)
MAD
I've changed the way we handle the URLFetches hoping it will fix the Valgrind issues... ...
9 years, 6 months ago (2011-06-23 17:47:40 UTC) #1
MAD
On 2011/06/23 17:47:40, MAD wrote: > I've changed the way we handle the URLFetches hoping ...
9 years, 6 months ago (2011-06-23 18:50:28 UTC) #2
MAD
OK, I think it's fine now... Please take a look... Thanks! BYE MAD
9 years, 6 months ago (2011-06-23 22:49:12 UTC) #3
Timur Iskhodzhanov
deferring to Chris (he's the current memory sheriff) instead of Alexander
9 years, 6 months ago (2011-06-24 16:04:12 UTC) #4
cbentzel
LGTM http://codereview.chromium.org/7246010/diff/1009/chrome/browser/translate/translate_manager.cc File chrome/browser/translate/translate_manager.cc (right): http://codereview.chromium.org/7246010/diff/1009/chrome/browser/translate/translate_manager.cc#newcode354 chrome/browser/translate/translate_manager.cc:354: // Looks like crash on Mac is possibly ...
9 years, 6 months ago (2011-06-24 19:56:08 UTC) #5
cbentzel
Also - it looks like this fixes a potential use-after-free of TranslateManager. The UrlFetcherDelegate does ...
9 years, 6 months ago (2011-06-24 20:02:04 UTC) #6
MAD
9 years, 6 months ago (2011-06-27 18:42:40 UTC) #7
BTW, the check was taken from here:
http://codesearch.google.com/codesearch#OAMlx_jo-ck/src/chrome/browser/autofi...

which was added by George in rev:
43923<http://src.chromium.org/viewvc/chrome?view=rev&revision=43923>

I didn't get to add the DCHECK before you committed the change, is it worth
adding now as an after thought? Should I also add it to the
autofil_download.cc file?

Thanks!

On Fri, Jun 24, 2011 at 4:02 PM, <cbentzel@chromium.org> wrote:

> Also - it looks like this fixes a potential use-after-free of
> TranslateManager.
>
> The UrlFetcherDelegate does not unregister as delegate from the UrlFetcher
> in
> it's destructor - in fact, it looks like there is no way to change the
> delegate
> post-construction - so we need to be doing the scoped_ptr's here to be
> safe.
>
> I'm worried that the incorrect-source issue is a red herring - but OK with
> keeping it in if you augment with a CHECK.
>
>
>
http://codereview.chromium.**org/7246010/<http://codereview.chromium.org/7246...
>

Powered by Google App Engine
This is Rietveld 408576698