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

Issue 19502: Get rid of synchronous ResolveProxy API. (Closed)

Created:
11 years, 10 months ago by eroman
Modified:
9 years, 6 months ago
Reviewers:
wtc
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Get rid of synchronous ResolveProxy API. Also remove the ProxyInfo::Apply method. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=9015

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 24

Patch Set 3 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+217 lines, -150 lines) Patch
M net/proxy/proxy_service.h View 1 2 4 chunks +29 lines, -12 lines 1 comment Download
M net/proxy/proxy_service.cc View 1 2 8 chunks +93 lines, -70 lines 0 comments Download
M net/proxy/proxy_service_unittest.cc View 1 2 20 chunks +95 lines, -68 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
eroman
This change depends on (http://codereview.chromium.org/14142) which gets rid of the (non-unit-test) consumer of the sync ...
11 years, 10 months ago (2009-01-30 10:56:01 UTC) #1
wtc
LGTM. Please review my suggested changes and questions below. Why do you get rid of ...
11 years, 10 months ago (2009-01-30 18:21:34 UTC) #2
eroman
> Why do you get rid of the synchronous mode of ResolveProxy, > and then ...
11 years, 10 months ago (2009-01-30 22:31:47 UTC) #3
wtc
11 years, 10 months ago (2009-01-30 23:06:06 UTC) #4
LGTM!  Thanks for explaining the background to me
as I didn't look at the CL this CL depends on.

I suggested a minor comment change for ResolveProxy below.

http://codereview.chromium.org/19502/diff/11/13
File net/proxy/proxy_service.cc (right):

http://codereview.chromium.org/19502/diff/11/13#newcode224
Line 224: if (!was_cancelled) {
On 2009/01/30 22:31:47, eroman wrote:
>
> Added a comment to explain that.

Actually I didn't mean to ask you to add a comment.
But it doesn't hurt.

http://codereview.chromium.org/19502/diff/11/13#newcode293
Line 293: DCHECK(callback);
On 2009/01/30 22:31:47, eroman wrote:
> On 2009/01/30 18:21:35, wtc wrote:
> > Why is this DCHECK removed?
> 
> This is an _added_ DCHECK.

D'oh!  I was stupid.

http://codereview.chromium.org/19502/diff/203/206
File net/proxy/proxy_service.h (right):

http://codereview.chromium.org/19502/diff/203/206#newcode93
Line 93: // Returns ERR_IO_PENDING if the proxy information could not be
provided
Ah, so this block comment still needs to be updated.
I missed it this morning.

Since ResolveProxy doesn't have a sync mode any more,
if seems that we should say this instead:
  Returns ERR_IO_PENDING if we have initiated
  asynchronous proxy resolution successfully.

Powered by Google App Engine
This is Rietveld 408576698