gpt4 book ai didi

android - PAC 支持被禁用,因为没有系统实现

转载 作者:IT老高 更新时间:2023-10-28 22:17:08 34 4
gpt4 key购买 nike

我最近将我的 Nexus 4 升级到了 Android 4.4。在调试我的应用程序时,我发现消息 W/chromium(14962): [WARNING:proxy_service.cc(888)] PAC support disabled because there is no system implementation

什么意思?


Logcat

12-12 17:38:56.726: V/WebViewChromium(14962): Binding Chromium to the main looper Looper{41f91588}
12-12 17:38:56.736: I/chromium(14962): [INFO:library_loader_hooks.cc(112)] Chromium logging enabled: level = 0, default verbosity = 0
12-12 17:38:56.736: I/BrowserProcessMain(14962): Initializing chromium process, renderers=0
12-12 17:38:56.746: W/chromium(14962): [WARNING:proxy_service.cc(888)] PAC support disabled because there is no system implementation

最佳答案

我认为您可以放心地忽略这一点。它在 Chromium 浏览器引擎中有点硬编码。

如果您检查 Chromium 源 (https://chromium.googlesource.com/chromium/src.git/+/master/net/proxy/proxy_service.cc) 并查看 ProxyService::CreateUsingSystemProxyResolver,您会发现

if (!ProxyResolverFactoryForSystem::IsSupported()) {
LOG(WARNING) << "PAC support disabled because there is no "
"system implementation";
return CreateWithoutProxyResolver(proxy_config_service, net_log);
}

如果您不在 Windows 或 MacOS 上,ProxyResolverFactoryForSystem::IsSupported() 只是返回 false

class ProxyResolverFactoryForSystem : public ProxyResolverFactory {
//[...]
static bool IsSupported() {
#if defined(OS_WIN) || defined(OS_MACOSX)
return true;
#else
return false;
#endif
}
};

关于android - PAC 支持被禁用,因为没有系统实现,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20557708/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com