use request context from session if provided

This commit is contained in:
Robo 2015-07-15 18:05:38 +05:30
parent 8eb87c5d2b
commit 57244e4718
9 changed files with 46 additions and 8 deletions

View file

@ -114,6 +114,7 @@ void AdapterRequestJob::CreateFileJobAndStart(const base::FilePath& path) {
}
void AdapterRequestJob::CreateHttpJobAndStart(
net::URLRequestContextGetter* request_context_getter,
const GURL& url,
const std::string& method,
const std::string& referrer) {
@ -122,7 +123,7 @@ void AdapterRequestJob::CreateHttpJobAndStart(
return;
}
real_job_ = new URLRequestFetchJob(request(),
real_job_ = new URLRequestFetchJob(request_context_getter, request(),
network_delegate(), url, method, referrer);
real_job_->Start();
}