]> khamidou — GitHub mirrors - electron.git/commitdiff
Make file: protocol compatible with asar: protocol
authorCheng Zhao <zcbenz@gmail.com>
Sat, 31 Jan 2015 01:45:22 +0000 (17:45 -0800)
committerCheng Zhao <zcbenz@gmail.com>
Sat, 31 Jan 2015 01:58:59 +0000 (17:58 -0800)
atom/browser/atom_browser_context.cc

index 7e340867ab209ab2b3df2cf9e50ef9f25ec885a5..51e2a87d1c267c0946503f646a4de73e1d1c0998 100644 (file)
@@ -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(