Browse Source

net::FtpProtocolHandler has changed its constructor

Cheng Zhao 8 years ago
parent
commit
5cf2873b77
2 changed files with 2 additions and 3 deletions
  1. 1 1
      atom/browser/api/atom_api_session.cc
  2. 1 2
      atom/browser/atom_browser_context.cc

+ 1 - 1
atom/browser/api/atom_api_session.cc

@@ -255,7 +255,7 @@ class ResolveProxyHelper {
     // Start the request.
     int result = proxy_service->ResolveProxy(
         url, "GET", &proxy_info_, completion_callback, &pac_req_, nullptr,
-        net::BoundNetLog());
+        net::NetLogWithSource());
 
     // Completed synchronously.
     if (result != net::ERR_IO_PENDING)

+ 1 - 2
atom/browser/atom_browser_context.cc

@@ -155,8 +155,7 @@ AtomBrowserContext::CreateURLRequestJobFactory(
       url_request_context_getter()->GetURLRequestContext()->host_resolver();
   job_factory->SetProtocolHandler(
       url::kFtpScheme,
-      base::WrapUnique(new net::FtpProtocolHandler(
-          new net::FtpNetworkLayer(host_resolver))));
+      net::FtpProtocolHandler::Create(host_resolver));
 
   return std::move(job_factory);
 }