From 2a8fe0c0faed445f1e56e770f525ca5e27b398da Mon Sep 17 00:00:00 2001 From: Sanghyup Lee Date: Mon, 11 Sep 2017 16:58:24 +0900 Subject: [PATCH] Set proxy service to avoid crash This patch sets proxy service with |CreateUsingSystemProxyResolver| refer to |URLRequestContextGetterEfl| to avoid crash. Change-Id: I5846117c5ea1d193c0d238a11a5235dfd7d2ea64 Signed-off-by: Sanghyup Lee --- vendor/brightray/browser/url_request_context_getter.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vendor/brightray/browser/url_request_context_getter.cc b/vendor/brightray/browser/url_request_context_getter.cc index 2da99e1..fd23b4b 100644 --- a/vendor/brightray/browser/url_request_context_getter.cc +++ b/vendor/brightray/browser/url_request_context_getter.cc @@ -235,7 +235,12 @@ net::URLRequestContext* URLRequestContextGetter::GetURLRequestContext() { storage_->set_proxy_service(net::ProxyService::CreateFixed( proxy_config)); } else { -#if !defined(USE_EFL) +#if defined(USE_EFL) + storage_->set_proxy_service( + net::ProxyService::CreateUsingSystemProxyResolver( + std::move(proxy_config_service_), 0, + url_request_context_->net_log())); +#else storage_->set_proxy_service( net::CreateProxyServiceUsingV8ProxyResolver( std::move(proxy_config_service_), -- 2.7.4