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

Issue 3198001: Fix leaks in GoogleURLTrackerTest::CreateRequestContext() (Closed)

Created:
10 years, 4 months ago by ukai
Modified:
9 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, ben+cc_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Fix leaks in GoogleURLTrackerTest::CreateRequestContext() URLFetcher will release URLRequestContextGetter in CancelURLRequest, which runs in IOMessageLoopProxy. So, if a test doesn't run with IO thread, it will not run CancelURLRequest from URLFetcher::Core::Stop(). BUG=52562 TEST=./tools/valgrind/chrome_tests.sh --test unit --tool memcheck --gtest_filter='GoogleURLTrackerTest.*' Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=56522

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -5 lines) Patch
M chrome/browser/google_url_tracker_unittest.cc View 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/common/net/test_url_fetcher_factory.h View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 2 (0 generated)
ukai
10 years, 4 months ago (2010-08-18 10:05:13 UTC) #1
Hironori Bono
10 years, 4 months ago (2010-08-18 10:36:39 UTC) #2
LGTM.

Regards,

Hironori Bono

Powered by Google App Engine
This is Rietveld 408576698