2013-12-13 48 views
24

我最近將Nexus 4升級到了Android 4.4。在調試我的應用時,我發現消息W/chromium(14962): [WARNING:proxy_service.cc(888)] PAC support disabled because there is no system implementation由於沒有系統實施,PAC支持被禁用

這是什麼意思?


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 

回答

40

我想你可以放心地忽略這一項。它在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); 
} 

其中ProxyResolverFactoryForSystem::IsSupported()剛剛返回false,如果你不是在Windows或MacOS的

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