我最近将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/