From a1f26c4c93e9bbb446527dbd8ecbd6016a490053 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 30 Jan 2015 17:45:22 -0800 Subject: [PATCH] Make file: protocol compatible with asar: protocol --- atom/browser/atom_browser_context.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/atom/browser/atom_browser_context.cc b/atom/browser/atom_browser_context.cc index 7e340867ab20..51e2a87d1c26 100644 --- a/atom/browser/atom_browser_context.cc +++ b/atom/browser/atom_browser_context.cc @@ -16,7 +16,6 @@ #include "content/public/browser/browser_thread.h" #include "content/public/common/url_constants.h" #include "net/url_request/data_protocol_handler.h" -#include "net/url_request/file_protocol_handler.h" #include "net/url_request/url_request_intercepting_job_factory.h" #include "url/url_constants.h" @@ -59,7 +58,7 @@ net::URLRequestJobFactory* AtomBrowserContext::CreateURLRequestJobFactory( job_factory->SetProtocolHandler( url::kDataScheme, new net::DataProtocolHandler); job_factory->SetProtocolHandler( - url::kFileScheme, new net::FileProtocolHandler( + url::kFileScheme, new asar::AsarProtocolHandler( BrowserThread::GetBlockingPool()->GetTaskRunnerWithShutdownBehavior( base::SequencedWorkerPool::SKIP_ON_SHUTDOWN))); job_factory->SetProtocolHandler(