NavigationThrottle: allow customization of net::Error when blocking
a navigation.
Customizing the net error is desirable since the text of
ERR_BLOCKED_BY_CLIENT currently advises the user to try disabling
extensions, which can be situationally confusing (bug 649869).
Throttles can now return values either like this:
return PROCEED;
or like this:
return BLOCK_REQUEST; // uses net::ERR_BLOCKED_BY_CLIENT, as before
or like this (new!):
return {BLOCK_REQUEST, net::ERR_FAILED};
No throttles use the new syntax yet.
BUG=
649869
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation