Returns proxy option value for the given protocol.
| 646 | namespace { |
| 647 | // Returns proxy option value for the given protocol. |
| 648 | std::string getProxyOptionFor(PrefPtr proxyPref, PrefPtr proxyUser, |
| 649 | PrefPtr proxyPasswd, const Option* option) |
| 650 | { |
| 651 | std::string uri = makeProxyUri(proxyPref, proxyUser, proxyPasswd, option); |
| 652 | if (uri.empty()) { |
| 653 | return makeProxyUri(PREF_ALL_PROXY, PREF_ALL_PROXY_USER, |
| 654 | PREF_ALL_PROXY_PASSWD, option); |
| 655 | } |
| 656 | |
| 657 | return uri; |
| 658 | } |
| 659 | } // namespace |
| 660 | |
| 661 | // Returns proxy URI for given protocol. If no proxy URI is defined, |
no test coverage detected