Add protocol interceptor API.

This commit is contained in:
Cheng Zhao 2013-09-03 16:50:10 +08:00
parent 335db788a5
commit 7737708fdd
5 changed files with 149 additions and 10 deletions

View file

@ -96,7 +96,7 @@ void AdapterRequestJob::CreateJobFromProtocolHandlerAndStart() {
DCHECK(protocol_handler_);
real_job_ = protocol_handler_->MaybeCreateJob(request(),
network_delegate());
if (!real_job_)
if (!real_job_.get())
CreateErrorJobAndStart(net::ERR_NOT_IMPLEMENTED);
else
real_job_->Start();