Hello guys
I want to integrate HTTPS proxy into Chromium for Android for which I had made the following changes in the below mentioned files:
File Name use for proxy configuration:- "proxy_config_service_android.cc"
In below given function I had added few lines indicated by (+) sign.
=========================================
void FetchInitialConfig() {
DCHECK(OnJNIThread());
ProxyConfig proxy_config;
+ // GetLatestProxyConfigInternal(get_property_callback_, &proxy_config);
+ std::string host="HTTPS 89.36.212.227";
+ int port=3128;
CreateStaticProxyConfig(host,port,””,exclusion_list,config)
network_task_runner_->PostTask(
FROM_HERE,
base::Bind(&Delegate::SetNewConfigOnNetworkThread, this, proxy_config));
}
Here I have mentioned the various HTTPS IPs and Port no. But they are not working.
I have also tried including pac_script :-
"pacScript: {n data: "function FindProxyForURL(url, host) {\n" +n "if(host=='89.36.212.227') \n" +n "return 'HTTPS 89.36.212.227:3128;DIRECT;';\n" +n " return 'HTTPS 89.36.212.227:3128;HTTPS 89.36.212.227:3128;';\n" +nn "}"n }", but this is also not working.
Please suggest me some solution.
Thanks in advance.