2013-12-13 2 views
24

Ho recentemente aggiornato il mio Nexus 4 ad Android 4.4. Durante il debug della mia app, ho scoperto il messaggio W/chromium(14962): [WARNING:proxy_service.cc(888)] PAC support disabled because there is no system implementationSupporto PAC disabilitato perché non esiste implementazione del sistema

Che cosa significa?


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 

risposta

40

Penso che si possa ignorare questo uno. È un po 'hard-coded in Chromium Browser Engine.

Se controllate le fonti di cromo (https://chromium.googlesource.com/chromium/src.git/+/master/net/proxy/proxy_service.cc) e vedere ProxyService::CreateUsingSystemProxyResolver troverete

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

dove ProxyResolverFactoryForSystem::IsSupported() è solo tornando false se non sei su Windows o MacOS

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