use request context from session if provided
This commit is contained in:
parent
8eb87c5d2b
commit
57244e4718
9 changed files with 46 additions and 8 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue