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

Issue 6541021: Send fatal proxy errors to the network delegate. (Closed)

Created:
9 years, 10 months ago by jochen (gone - plz use gerrit)
Modified:
9 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, Erik does not do reviews, Aaron Boodman, pam+watch_chromium.org, Paweł Hajdan Jr., darin-cc_chromium.org
Visibility:
Public.

Description

Send fatal proxy errors to the network delegate. BUG=60099 TEST=browser test Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=75726

Patch Set 1 #

Patch Set 2 : updates #

Patch Set 3 : updates #

Total comments: 5

Patch Set 4 : updates #

Patch Set 5 : updates #

Total comments: 2

Patch Set 6 : update #

Patch Set 7 : start unit tests #

Patch Set 8 : updates #

Total comments: 1

Patch Set 9 : updates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+178 lines, -7 lines) Patch
M chrome/browser/extensions/extension_proxy_apitest.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/io_thread.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/net/chrome_network_delegate.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/net/chrome_network_delegate.cc View 1 2 3 3 chunks +27 lines, -1 line 0 comments Download
M net/http/http_network_delegate.h View 1 2 3 4 5 6 7 1 chunk +7 lines, -1 line 0 comments Download
M net/url_request/url_request.cc View 4 1 chunk +5 lines, -2 lines 0 comments Download
M net/url_request/url_request_job.cc View 1 2 3 4 3 chunks +12 lines, -0 lines 0 comments Download
M net/url_request/url_request_test_util.h View 1 2 3 4 5 6 7 3 chunks +24 lines, -0 lines 0 comments Download
M net/url_request/url_request_test_util.cc View 1 2 3 4 5 6 7 2 chunks +37 lines, -0 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +60 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
jochen (gone - plz use gerrit)
please review mpcomplete extension bits willchan - network delegate eroman - proxy battre - api ...
9 years, 10 months ago (2011-02-18 13:54:10 UTC) #1
Matt Perry
http://codereview.chromium.org/6541021/diff/3015/chrome/test/data/extensions/api_test/proxy/events/test.js File chrome/test/data/extensions/api_test/proxy/events/test.js (right): http://codereview.chromium.org/6541021/diff/3015/chrome/test/data/extensions/api_test/proxy/events/test.js#newcode9 chrome/test/data/extensions/api_test/proxy/events/test.js:9: if (error.fatal && error.details == "") use: chrome.test.assertTrue(error.fatal) chrome.test.assertEq("", ...
9 years, 10 months ago (2011-02-18 19:51:48 UTC) #2
willchan no longer on Chromium
You're not intending to cover all proxy errors here, right? Because you've only caught one. ...
9 years, 10 months ago (2011-02-18 21:02:45 UTC) #3
jochen (gone - plz use gerrit)
On 2011/02/18 21:02:45, willchan wrote: > You're not intending to cover all proxy errors here, ...
9 years, 10 months ago (2011-02-18 21:06:14 UTC) #4
jochen (gone - plz use gerrit)
the general idea of this event is: - report fatal errors, i.e. it's not possible ...
9 years, 10 months ago (2011-02-18 21:38:40 UTC) #5
willchan no longer on Chromium
ERR_PROXY_CONNECTION_FAILED just means that we could not actually TCP connect to the proxy (could be ...
9 years, 10 months ago (2011-02-18 21:56:56 UTC) #6
jochen (gone - plz use gerrit)
the proxy pac stuff will come in a separate CL http://codereview.chromium.org/6541021/diff/3015/chrome/test/data/extensions/api_test/proxy/events/test.js File chrome/test/data/extensions/api_test/proxy/events/test.js (right): http://codereview.chromium.org/6541021/diff/3015/chrome/test/data/extensions/api_test/proxy/events/test.js#newcode9 ...
9 years, 10 months ago (2011-02-21 14:52:59 UTC) #7
jochen (gone - plz use gerrit)
http://codereview.chromium.org/6541021/diff/3015/net/url_request/url_request.cc File net/url_request/url_request.cc (right): http://codereview.chromium.org/6541021/diff/3015/net/url_request/url_request.cc#newcode490 net/url_request/url_request.cc:490: if (context_ && context_->network_delegate()) On 2011/02/21 14:52:59, jochen wrote: ...
9 years, 10 months ago (2011-02-21 15:55:53 UTC) #8
willchan no longer on Chromium
You should probably update url_request_unittest.cc with some tests for these cases. For the mock sockets ...
9 years, 10 months ago (2011-02-21 23:35:39 UTC) #9
jochen (gone - plz use gerrit)
On 2011/02/21 23:35:39, willchan wrote: > You should probably update url_request_unittest.cc with some tests for ...
9 years, 10 months ago (2011-02-21 23:37:32 UTC) #10
jochen (gone - plz use gerrit)
I've pulled out the extension bits from this CL, as I'm only waiting for feedback ...
9 years, 10 months ago (2011-02-22 12:27:44 UTC) #11
eroman
9 years, 10 months ago (2011-02-22 23:21:58 UTC) #12
LGTM.

This takes the approach of identifying the "obvious" proxy errors, however it is
also possible that DIRECT connections are failing in other mysterious ways
(ERR_NAME_NOT_RESOLVED, ERR_CONNECTION_RESET, ERR_CONNECTION_TIMEOUT, etc..),
due to not using a proxy server. 

Not sure what you can do about those though, since there is no way to know from
the error code whether it was caused by misconfigured proxy.

http://codereview.chromium.org/6541021/diff/3017/net/url_request/url_request_...
File net/url_request/url_request_test_util.h (right):

http://codereview.chromium.org/6541021/diff/3017/net/url_request/url_request_...
net/url_request/url_request_test_util.h:193: TestHttpNetworkDelegate();
nit: indentation.

Powered by Google App Engine
This is Rietveld 408576698