PAC support disabled because there is no system implementation

前端 未结 1 1315
不思量自难忘°
不思量自难忘° 2020-12-18 18:08

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 disable

相关标签:
1条回答
  • 2020-12-18 18:45

    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
      }
    };
    
    0 讨论(0)
提交回复
热议问题