我最近将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
Run Code Online (Sandbox Code Playgroud)
小智 40
我想你可以放心地忽略这个.它在Chromium Browser Engine中有点硬编码.
如果您查看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);
}
Run Code Online (Sandbox Code Playgroud)
如果您不在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
}
};
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
14867 次 |
| 最近记录: |