Merge "Remove ProxyInfo(String) and update callers to use ProxyInfo(Uri)" am: c36f17d32e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1146757 Change-Id: Ib3e7b1ff5c2fbe3fd9a049b58faf26a6c355ad8f
This commit is contained in:
@@ -126,18 +126,6 @@ public class ProxyInfo implements Parcelable {
|
||||
mPacFileUrl = pacFileUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a ProxyProperties that points at a PAC URL.
|
||||
* @hide
|
||||
*/
|
||||
public ProxyInfo(String pacFileUrl) {
|
||||
mHost = LOCAL_HOST;
|
||||
mPort = LOCAL_PORT;
|
||||
mExclusionList = LOCAL_EXCL_LIST;
|
||||
mParsedExclusionList = parseExclusionList(mExclusionList);
|
||||
mPacFileUrl = Uri.parse(pacFileUrl);
|
||||
}
|
||||
|
||||
/**
|
||||
* Only used in PacManager after Local Proxy is bound.
|
||||
* @hide
|
||||
|
||||
@@ -163,7 +163,7 @@ public class ProxyTracker {
|
||||
if (!TextUtils.isEmpty(host) || !TextUtils.isEmpty(pacFileUrl)) {
|
||||
ProxyInfo proxyProperties;
|
||||
if (!TextUtils.isEmpty(pacFileUrl)) {
|
||||
proxyProperties = new ProxyInfo(pacFileUrl);
|
||||
proxyProperties = new ProxyInfo(Uri.parse(pacFileUrl));
|
||||
} else {
|
||||
proxyProperties = new ProxyInfo(host, port, exclList);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user