Update NetworkDelegate
* Remove Deprecated OnResponseStarted. https://chromium-review.googlesource.com/c/chromium/src/+/763193 * Replace cookie lines with CanonicalCookie in CanSetCookie delegates. https://chromium-review.googlesource.com/c/chromium/src/+/775606 * Reporting: Check upload permissions asynchronously https://chromium-review.googlesource.com/c/chromium/src/+/937566
This commit is contained in:
parent
bf55d856d2
commit
026e7bff40
6 changed files with 20 additions and 15 deletions
|
@ -354,7 +354,8 @@ void AtomURLRequest::OnAuthRequired(net::URLRequest* request,
|
|||
this, scoped_refptr<net::AuthChallengeInfo>(auth_info)));
|
||||
}
|
||||
|
||||
void AtomURLRequest::OnResponseStarted(net::URLRequest* request) {
|
||||
void AtomURLRequest::OnResponseStarted(net::URLRequest* request,
|
||||
int net_error) {
|
||||
DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
|
||||
if (!request_) {
|
||||
return;
|
||||
|
@ -373,7 +374,7 @@ void AtomURLRequest::OnResponseStarted(net::URLRequest* request) {
|
|||
ReadResponse();
|
||||
} else if (status.status() == net::URLRequestStatus::Status::FAILED) {
|
||||
// Report error on Start.
|
||||
DoCancelWithError(net::ErrorToString(status.ToNetError()), true);
|
||||
DoCancelWithError(net::ErrorToString(net_error), true);
|
||||
}
|
||||
// We don't report an error is the request is canceled.
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue