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

Issue 9704023: Replace URLRequestFailedDnsJob with URLRequestFailedJob (Closed)

Created:
8 years, 9 months ago by mmenke
Modified:
8 years, 9 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, cbentzel+watch_chromium.org
Visibility:
Public.

Description

Modify URLRequestFailedDnsJob to allow any error code to be returned while "connecting" to either an fake HTTP or HTTPS server, and rename it to URLRequestFailedJob. This is needed for testing the (unlanded) captive portal detection/response code. BUG=87100 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=127488

Patch Set 1 : #

Patch Set 2 : Fix includes #

Total comments: 6

Patch Set 3 : Response to comments, pointless sync #

Patch Set 4 : Fix weak ptr factory usage #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -139 lines) Patch
M chrome/browser/errorpage_browsertest.cc View 1 2 6 chunks +12 lines, -11 lines 0 comments Download
M chrome/browser/net/url_request_mock_util.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/test/data/iframe_dns_error.html View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host_uitest.cc View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M content/content_browser.gypi View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
D content/test/net/url_request_failed_dns_job.h View 1 2 1 chunk +0 lines, -38 lines 0 comments Download
D content/test/net/url_request_failed_dns_job.cc View 1 2 1 chunk +0 lines, -47 lines 0 comments Download
A + content/test/net/url_request_failed_job.h View 1 2 3 1 chunk +28 lines, -16 lines 0 comments Download
A + content/test/net/url_request_failed_job.cc View 1 2 3 1 chunk +58 lines, -18 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
mmenke
willchan: Please review everything. If you have a suggestion for a better/less busy reviewer for ...
8 years, 9 months ago (2012-03-15 14:52:59 UTC) #1
jam
On 2012/03/15 14:52:59, Matt Menke wrote: > willchan: Please review everything. If you have a ...
8 years, 9 months ago (2012-03-15 15:02:55 UTC) #2
jam
and content/browser and content_browser.gyp lgtm
8 years, 9 months ago (2012-03-15 15:03:26 UTC) #3
willchan no longer on Chromium
http://codereview.chromium.org/9704023/diff/2010/chrome/browser/errorpage_browsertest.cc File chrome/browser/errorpage_browsertest.cc (right): http://codereview.chromium.org/9704023/diff/2010/chrome/browser/errorpage_browsertest.cc#newcode76 chrome/browser/errorpage_browsertest.cc:76: GURL GetDnsErrorURL() { Make the function const? http://codereview.chromium.org/9704023/diff/2010/chrome/test/data/iframe_dns_error.html File ...
8 years, 9 months ago (2012-03-15 22:42:27 UTC) #4
mmenke
Thanks for the comments http://codereview.chromium.org/9704023/diff/2010/chrome/browser/errorpage_browsertest.cc File chrome/browser/errorpage_browsertest.cc (right): http://codereview.chromium.org/9704023/diff/2010/chrome/browser/errorpage_browsertest.cc#newcode76 chrome/browser/errorpage_browsertest.cc:76: GURL GetDnsErrorURL() { On 2012/03/15 ...
8 years, 9 months ago (2012-03-15 22:55:45 UTC) #5
mmenke
Will, could you sign off on this when you get a chance? Thanks!
8 years, 9 months ago (2012-03-19 15:00:39 UTC) #6
willchan no longer on Chromium
Lgtm On Mar 19, 2012 8:00 AM, <mmenke@chromium.org> wrote: > Will, could you sign off ...
8 years, 9 months ago (2012-03-19 15:20:01 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mmenke@chromium.org/9704023/3033
8 years, 9 months ago (2012-03-19 15:22:12 UTC) #8
commit-bot: I haz the power
Can't apply patch for file content/test/net/url_request_failed_job.cc. While running patch -p0 --forward --force; patching file content/test/net/url_request_failed_job.cc ...
8 years, 9 months ago (2012-03-19 15:22:15 UTC) #9
mmenke1
8 years, 9 months ago (2012-03-19 15:27:59 UTC) #10
On 2012/03/19 15:22:15, I haz the power (commit-bot) wrote:
> Can't apply patch for file content/test/net/url_request_failed_job.cc.
> While running patch -p0 --forward --force;
> patching file content/test/net/url_request_failed_job.cc
> Hunk #1 FAILED at 1.
> 1 out of 1 hunk FAILED -- saving rejects to file
> content/test/net/url_request_failed_job.cc.rej

Forgot the CQ hates moving files.  I'll run the trybots on a more recent build,
and then commit manually afterwards.

Powered by Google App Engine
This is Rietveld 408576698