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

Issue 5556004: Fix URLRequestHttpJob to use ScopedRunnableMethodFactory. (Closed)

Created:
10 years ago by willchan no longer on Chromium
Modified:
9 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, akalin
Visibility:
Public.

Description

Fix URLRequestHttpJob to use ScopedRunnableMethodFactory. This will prevent us from leaking SSLClientSockets on shutdown since the certificate related functions complete asynchronously. There's no reason to keep the URLRequestHttpJob alive, since Kill() will cancel the delegates appropriately, so we use ScopedRunnableMethodFactory to avoid AddRef()'ing when we PostTask(). BUG=63692 TEST=existing Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=68153

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fix indent #

Patch Set 3 : Fix indent #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -0 lines) Patch

Messages

Total messages: 4 (0 generated)
willchan no longer on Chromium
eroman: primary reviewer rdsmith: secondary reviewer, just to help you learn the code. You'll find ...
10 years ago (2010-12-03 00:51:08 UTC) #1
eroman
lgtm http://codereview.chromium.org/5556004/diff/1/net/url_request/url_request_http_job.cc File net/url_request/url_request_http_job.cc (right): http://codereview.chromium.org/5556004/diff/1/net/url_request/url_request_http_job.cc#newcode376 net/url_request/url_request_http_job.cc:376: &URLRequestHttpJob::OnStartCompleted, net::OK)); nit: indent by 4
10 years ago (2010-12-03 06:03:19 UTC) #2
Randy Smith (Not in Mondays)
On 2010/12/03 00:51:08, willchan wrote: > eroman: primary reviewer > rdsmith: secondary reviewer, just to ...
10 years ago (2010-12-06 20:49:27 UTC) #3
Randy Smith (Not in Mondays)
10 years ago (2010-12-06 21:12:17 UTC) #4
On 2010/12/06 20:49:27, rdsmith wrote:
> On 2010/12/03 00:51:08, willchan wrote:
> > eroman: primary reviewer
> > rdsmith: secondary reviewer, just to help you learn the code.  You'll find
it
> > useful to look at the URLRequestJob::Kill() and URLRequestHttpJob::Kill() to
> see
> > how cancellation works.
> > 
> > akalin: FYI
> 
> LGTM.  What more would be required to stop URLRequestJob from being
> RefCounted<>?

Never mind--I think the answer's implicit in the other patches.

Powered by Google App Engine
This is Rietveld 408576698