问题描述
我我的Nexus 4日前升级到Android 4.4。虽然调试我的应用程序,我发现信息 W /铬(14962):警告:proxy_service.cc(888)PAC支持禁用,因为没有系统的实施
这是什么意思?
的logcat
12-12 17:38:56.726:V / WebViewChromium(14962):铬绑定主活套活套{41f91588}
12-12 17:38:56.736:I /铬(14962):[INFO:library_loader_hooks.cc(112)]铬启用日志记录:级别= 0,默认的详细程度= 0
12-12 17:38:56.736:I / BrowserProcessMain(14962):初始化铬工艺,提炼= 0
12-12 17:38:56.746:W /铬(14962):警告:proxy_service.cc(888)PAC支持禁用,因为没有系统的实现
我想你可以放心地忽略这一点。这是有点硬codeD的Chromium浏览器引擎。
如果您检查铬源(https://chromium.googlesource.com/chromium/src.git/+/master/net/proxy/proxy_service.cc)看看 ProxyService :: CreateUsingSystemProxyResolver
你会发现
如果(!ProxyResolverFactoryForSystem ::则isSupported()){
LOG(警告)<< PAC支持禁用,因为没有
系统实施;
返回CreateWithoutProxyResolver(proxy_config_service,net_log);
}
其中, ProxyResolverFactoryForSystem ::则isSupported()
刚刚返回假
,如果你不是在Windows或MacOS的
类ProxyResolverFactoryForSystem:公共ProxyResolverFactory {
// [...]
静态布尔则isSupported(){
#如果定义(OS_WIN)||定义(OS_MACOSX)
返回true;
#其他
返回false;
#ENDIF
}
};
I've recently upgraded my Nexus 4 to Android 4.4. Whilst debugging my app, I discovered message W/chromium(14962): [WARNING:proxy_service.cc(888)] PAC support disabled because there is no system implementation
What does it mean ?
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
I think you can safely ignore this one. It is kinda hard-coded in Chromium Browser Engine.
If you check Chromium sources (https://chromium.googlesource.com/chromium/src.git/+/master/net/proxy/proxy_service.cc) and see ProxyService::CreateUsingSystemProxyResolver
you will find
if (!ProxyResolverFactoryForSystem::IsSupported()) {
LOG(WARNING) << "PAC support disabled because there is no "
"system implementation";
return CreateWithoutProxyResolver(proxy_config_service, net_log);
}
where ProxyResolverFactoryForSystem::IsSupported()
is just returning false
if you're not on Windows or MacOS
class ProxyResolverFactoryForSystem : public ProxyResolverFactory {
//[...]
static bool IsSupported() {
#if defined(OS_WIN) || defined(OS_MACOSX)
return true;
#else
return false;
#endif
}
};
这篇关于PAC支持禁用,因为没有系统的实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!