Chromium proxy settings from command line

155 views
Skip to first unread message

minok

unread,
Nov 30, 2022, 4:38:37 PM11/30/22
to Chromium-dev
Hello,

I am trying to figure out which part of the source code sets the proxy server when Chromium is run with cmd flags e.g. "chromium.exe --proxy-server=127.0.0.1:8.0.8.0". At first I thought it was ConfigureNetworkContextParams in content_browser_client_impl.cc, but it seems that it's not it, as when I hardcode a custom ip:port address, it does not work.
Any tips/pointers would be helpful

minok

unread,
Dec 1, 2022, 1:25:16 PM12/1/22
to Chromium-dev, minok
I got it figured out; in case someone might need this information:
In \src\chrome\browser\prefs\chrome_command_line_pref_store.cc there is a function ApplyProxyMode() which takes the string from the command line and sets it as a proxy server.

Reply all
Reply to author
Forward
0 new messages