Fix styling of #1199

This commit is contained in:
Cheng Zhao 2015-03-05 12:31:45 -08:00
parent bb0e68e563
commit c9b549ae69

View file

@ -101,12 +101,7 @@ void AdapterRequestJob::CreateFileJobAndStart(const base::FilePath& path) {
base::SequencedWorkerPool::SKIP_ON_SHUTDOWN));
} else {
auto archive = asar::GetOrCreateAsarArchive(asar_path);
if (!archive)
real_job_ = new net::URLRequestErrorJob(
request(),
network_delegate(),
net::ERR_FILE_NOT_FOUND);
if (archive)
real_job_ = new asar::URLRequestAsarJob(
request(),
network_delegate(),
@ -115,6 +110,9 @@ void AdapterRequestJob::CreateFileJobAndStart(const base::FilePath& path) {
content::BrowserThread::GetBlockingPool()->
GetTaskRunnerWithShutdownBehavior(
base::SequencedWorkerPool::SKIP_ON_SHUTDOWN));
else
real_job_ = new net::URLRequestErrorJob(
request(), network_delegate(), net::ERR_FILE_NOT_FOUND);
}
real_job_->Start();