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

Issue 160510: Better match IE's proxy settings.... (Closed)

Created:
11 years, 4 months ago by eroman
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com, John Grabowski, darin (slow to review)
Visibility:
Public.

Description

Better match IE's proxy settings. * When BOTH autodetect and custom PAC script are given, try both. * Use successful PAC parsing as the heuristic for determining when a script is valid (rather than first-request). * Only apply the proxy bypass list when using non-PAC. The high level explanation on how this works: http://sites.google.com/a/chromium.org/dev/developers/design-documents/proxy-settings-fallback BUG= http://crbug.com/18271, http://crbug.com/9985 TEST=unit tests. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=22430

Patch Set 1 #

Patch Set 2 : nits #

Total comments: 28

Patch Set 3 : Sync + mac build fix #

Patch Set 4 : Add a missing file from chrome/browser/net #

Total comments: 4

Patch Set 5 : Address willchan's (first batch of) comments #

Total comments: 6

Patch Set 6 : Address moar willchan comments #

Patch Set 7 : Change error code #

Patch Set 8 : sync #

Patch Set 9 : fix merge conflict #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1411 lines, -289 lines) Patch
M chrome/browser/net/resolve_proxy_msg_helper_unittest.cc View 4 5 6 7 1 chunk +5 lines, -1 line 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download
A net/proxy/init_proxy_resolver.h View 1 2 3 4 1 chunk +104 lines, -0 lines 0 comments Download
A net/proxy/init_proxy_resolver.cc View 1 2 3 4 1 chunk +189 lines, -0 lines 0 comments Download
A net/proxy/init_proxy_resolver_unittest.cc View 1 1 chunk +325 lines, -0 lines 0 comments Download
M net/proxy/proxy_resolver.h View 1 2 3 4 5 6 7 2 chunks +16 lines, -14 lines 0 comments Download
M net/proxy/proxy_resolver_mac.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -1 line 0 comments Download
M net/proxy/proxy_resolver_perftest.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -2 lines 0 comments Download
M net/proxy/proxy_resolver_v8.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -3 lines 0 comments Download
M net/proxy/proxy_resolver_v8.cc View 1 2 3 4 5 6 7 6 chunks +34 lines, -13 lines 0 comments Download
M net/proxy/proxy_resolver_v8_unittest.cc View 1 2 3 4 5 6 7 13 chunks +50 lines, -45 lines 0 comments Download
M net/proxy/proxy_resolver_winhttp.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M net/proxy/proxy_resolver_winhttp.cc View 1 2 3 4 5 6 7 2 chunks +6 lines, -4 lines 0 comments Download
M net/proxy/proxy_script_fetcher.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -2 lines 0 comments Download
M net/proxy/proxy_script_fetcher.cc View 1 2 3 4 5 6 7 3 chunks +6 lines, -5 lines 0 comments Download
M net/proxy/proxy_script_fetcher_unittest.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M net/proxy/proxy_service.h View 1 2 3 4 5 6 7 6 chunks +19 lines, -31 lines 0 comments Download
M net/proxy/proxy_service.cc View 1 2 3 4 5 6 7 10 chunks +69 lines, -74 lines 0 comments Download
M net/proxy/proxy_service_unittest.cc View 1 2 3 4 5 6 7 8 35 chunks +397 lines, -48 lines 0 comments Download
M net/proxy/single_threaded_proxy_resolver.h View 1 2 3 4 5 6 7 4 chunks +11 lines, -6 lines 0 comments Download
M net/proxy/single_threaded_proxy_resolver.cc View 1 2 3 4 5 6 7 5 chunks +89 lines, -28 lines 0 comments Download
M net/proxy/single_threaded_proxy_resolver_unittest.cc View 1 2 3 4 5 6 7 4 chunks +66 lines, -9 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
eroman
wtc: You may want to review my design document. willchan: Please review the code.
11 years, 4 months ago (2009-08-02 10:58:38 UTC) #1
willchan no longer on Chromium
I'm still looking at the change to the SingleThreadedProxyResolver. Here are some initial comments, just ...
11 years, 4 months ago (2009-08-03 23:45:47 UTC) #2
wtc
eroman is the best person for reviewing this CL. Eric, could you please review this ...
11 years, 4 months ago (2009-08-03 23:53:16 UTC) #3
wtc
I'm so sorry. I thought evan was the author of this CL. I better get ...
11 years, 4 months ago (2009-08-03 23:54:22 UTC) #4
willchan no longer on Chromium
Ok, finished looking at the rest. http://codereview.chromium.org/160510/diff/1036/1039 File net/proxy/single_threaded_proxy_resolver.cc (right): http://codereview.chromium.org/160510/diff/1036/1039#newcode34 Line 34: AddRef(); // ...
11 years, 4 months ago (2009-08-04 00:33:07 UTC) #5
eroman
http://codereview.chromium.org/160510/diff/54/73 File net/proxy/init_proxy_resolver.cc (right): http://codereview.chromium.org/160510/diff/54/73#newcode65 Line 65: pac_urls_.push_back(pac_url); On 2009/08/03 23:45:48, willchan wrote: > indentation ...
11 years, 4 months ago (2009-08-04 01:00:53 UTC) #6
eroman
http://codereview.chromium.org/160510/diff/1036/1039 File net/proxy/single_threaded_proxy_resolver.cc (right): http://codereview.chromium.org/160510/diff/1036/1039#newcode34 Line 34: AddRef(); // balanced in RequestComplete On 2009/08/04 00:33:07, ...
11 years, 4 months ago (2009-08-04 01:13:56 UTC) #7
willchan no longer on Chromium
Some more nits. It also looks like the linux trybot is failing for some reason, ...
11 years, 4 months ago (2009-08-04 01:18:14 UTC) #8
eroman
> Some more nits. It also looks like the linux trybot is failing for some ...
11 years, 4 months ago (2009-08-04 01:30:56 UTC) #9
willchan no longer on Chromium
11 years, 4 months ago (2009-08-04 16:00:26 UTC) #10
LGTM

On 2009/08/04 01:30:56, eroman wrote:
> > Some more nits.  It also looks like the linux trybot is failing for some
> > reason, so you might want to look into that.
> 
> Yeah, it was reaching a NOTREACHED I added to
> resolve_proxy_msg_helper_unittest.cc.
> 
> I have fixed this (or will shortly).. I forgot I hadn't de-janked the
> ResolveProxyMessageHelper unittest (so it still has dependency on
> SingleThreadedProxyResolver).
> 
> http://codereview.chromium.org/160510/diff/1036/1039
> File net/proxy/single_threaded_proxy_resolver.cc (right):
> 
> http://codereview.chromium.org/160510/diff/1036/1039#newcode34
> Line 34: AddRef();  // balanced in RequestComplete
> On 2009/08/04 01:18:14, willchan wrote:
> > On 2009/08/04 01:13:56, eroman wrote:
> > > On 2009/08/04 00:33:07, willchan wrote:
> > > > Why is this AddRef() necessary?  Won't RunnableMethod manage the
reference
> > > > counts correctly?
> > > 
> > > That is a good question.
> > > 
> > > I copied the skeleton of the request job class, and didn't think about
this
> > too
> > > much. It doesn't seem like like it should be necessary, but I would like
to
> > > think about this some more before removing it.
> > > 
> > > How about I tackle this in a follow-up, so I can clean up the other guy as
> > well?
> > 
> > Fine with me, perhaps add a TODO to remind yourself?
> 
> Done.
> 
> http://codereview.chromium.org/160510/diff/129/1093
> File net/proxy/proxy_resolver_mac.h (right):
> 
> http://codereview.chromium.org/160510/diff/129/1093#newcode41
> Line 41: private:
> On 2009/08/04 01:18:14, willchan wrote:
> > This private: looks unnecessary.
> 
> Done.
> Darn, was a left-over.
> 
> http://codereview.chromium.org/160510/diff/129/1082
> File net/proxy/proxy_resolver_v8.cc (right):
> 
> http://codereview.chromium.org/160510/diff/129/1082#newcode56
> Line 56: explicit Context(ProxyResolverJSBindings* js_bindings) :
> js_bindings_(js_bindings) {
> On 2009/08/04 01:18:14, willchan wrote:
> > 80 columns
> 
> Done.
> 
> (Thanks for pointing that out, I picked it up when merging a conflict in a
> recent sync).
> 
> http://codereview.chromium.org/160510/diff/129/1091
> File net/proxy/proxy_script_fetcher.h (right):
> 
> http://codereview.chromium.org/160510/diff/129/1091#newcode40
> Line 40: virtual int Fetch(const GURL& url, std::string* bytes,
> On 2009/08/04 01:18:14, willchan wrote:
> > Need #include <string>
> 
> Done.

Powered by Google App Engine
This is Rietveld 408576698