Does anyone know the purpose of the --host-rules command line argument? What it currently seems to do is use a set of rules to rewrite the domain name for all requests (i.e., map all requests to
www.foo.com:1234 to
www.bar.com:321). It seems like much the same could be accomplished via a proxy, pac script, or --host-resolver-rules (Admittedly, the latter won't rewrite ports).
In general, it just seems like we have way too much needless complexity when setting up the network stack. Do we really need this as well? Removing an option is certainly painful to end users that are depending on this, but this all just seems a bit silly. It also is implemented at the HttpStreamFactoryImpl layer, which seems to mean it can be used to send secure cookies to third party sites (HTTPS only, since it doesn't rewrite scheme), as well as make the omnibox lie about what site you're visiting - admittedly, it's a command line parameter, and if you have that level of control, there are plenty of other things you can do, but overall, seems not great.