Make URLRequestFetchJob actually work

This commit is contained in:
Cheng Zhao 2015-06-17 09:31:33 +08:00
parent 44f8bfc550
commit af05f26a5f
6 changed files with 130 additions and 61 deletions

View file

@ -116,8 +116,7 @@ class CustomProtocolRequestJob : public AdapterRequestJob {
GetWeakPtr(), path));
return;
} else if (name == "RequestErrorJob") {
// Default value net::ERR_NOT_IMPLEMENTED
int error = -11;
int error = net::ERR_NOT_IMPLEMENTED;
dict.Get("error", &error);
BrowserThread::PostTask(BrowserThread::IO, FROM_HERE,