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

Issue 269064: Set os_error to net::ERR_ABORTED instead of 0 or net::ERR_FAILED when... (Closed)

Created:
11 years, 2 months ago by wtc
Modified:
9 years, 7 months ago
Reviewers:
eroman
CC:
chromium-reviews_googlegroups.com, brettw+cc_chromium.org, fbarchard, Alpha Left Google, ben+cc_chromium.org, jam, awong, Paweł Hajdan Jr., darin (slow to review), tim (not reviewing), scherkus (not reviewing)
Visibility:
Public.

Description

Set os_error to net::ERR_ABORTED instead of 0 or net::ERR_FAILED when we set the status of a URLRequestStatus to URLRequestStatus::CANCELED. R=eroman BUG=24674 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29367

Patch Set 1 #

Patch Set 2 : Remove a URLRequestStatus::FAILED change #

Patch Set 3 : Really remove a URLRequestStatus::FAILED change #

Total comments: 1

Patch Set 4 : Use a switch statement as suggested #

Total comments: 3

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -3 lines) Patch
M chrome/browser/automation/url_request_automation_job.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/resource_dispatcher_host.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/security_filter_peer.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M webkit/glue/media/buffered_data_source_unittest.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
wtc
eroman: please review this CL. abarth,jcampan: are you familiar with the SecurityFilterPeer::CreateSecurityFilterPeerForDeniedRequest call in ResourceDispatcher::OnRequestComplete? ...
11 years, 2 months ago (2009-10-13 17:16:10 UTC) #1
eroman
LGTM http://codereview.chromium.org/269064/diff/3001/3003 File chrome/browser/views/about_network_dialog.cc (right): http://codereview.chromium.org/269064/diff/3001/3003#newcode229 Line 229: DCHECK_EQ(status.status(), URLRequestStatus::FAILED); this dcheck seems awkward to ...
11 years, 2 months ago (2009-10-13 19:15:38 UTC) #2
wtc
I rewrote the if statement as a switch statement as you suggested. But I don't ...
11 years, 2 months ago (2009-10-16 02:39:28 UTC) #3
wtc
http://codereview.chromium.org/269064/diff/5001/6002 File chrome/browser/views/about_network_dialog.cc (right): http://codereview.chromium.org/269064/diff/5001/6002#newcode238 Line 238: swprintf(buf, arraysize(buf), L"Failed with %d: ", status.os_error()); The ...
11 years, 2 months ago (2009-10-16 02:44:27 UTC) #4
eroman
lgtm http://codereview.chromium.org/269064/diff/5001/6002 File chrome/browser/views/about_network_dialog.cc (right): http://codereview.chromium.org/269064/diff/5001/6002#newcode238 Line 238: swprintf(buf, arraysize(buf), L"Failed with %d: ", status.os_error()); ...
11 years, 2 months ago (2009-10-16 03:12:14 UTC) #5
wtc
11 years, 2 months ago (2009-10-17 01:37:04 UTC) #6
I found that about:network shows the URLRequests that
failed as "Canceled".  (I tried http://no.such.test/
and http://mycomputer:8080/.)  Very strange!
Therefore I removed about_network_dialog.cc from the CL
before I checked it in.

Powered by Google App Engine
This is Rietveld 408576698