Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 72fee698 authored by Andreas Huber's avatar Andreas Huber
Browse files

Use the same http proxy mechanism that webkit uses instead of bypassing proxies.

Change-Id: Ifd64664d3052fbfa715c2920984170c2a6190f6b
related-to-bug: 3440271
parent 2aac40fe
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@
#include "net/base/host_resolver.h"
#include "net/base/ssl_config_service.h"
#include "net/http/http_cache.h"
#include "net/proxy/proxy_config_service_android.h"

#include "include/ChromiumHTTPDataSource.h"

@@ -120,7 +121,8 @@ SfRequestContext::SfRequestContext() {
    ssl_config_service_ =
        net::SSLConfigService::CreateSystemSSLConfigService();

    proxy_service_ = net::ProxyService::CreateDirect();
    proxy_service_ = net::ProxyService::CreateWithoutProxyResolver(
            new net::ProxyConfigServiceAndroid, net_log_);

    http_transaction_factory_ = new net::HttpCache(
            host_resolver_,