Remove redundant mapping of net errors to strings.
commit3030374e345652de06eecbf954d8b0e212c16f56
authormmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 7 Aug 2014 16:12:06 +0000 (7 16:12 +0000)
committermmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 7 Aug 2014 16:12:06 +0000 (7 16:12 +0000)
tree42e28456b62d0abc668d8e8bff52f9a431942a31
parent7e29ff1b73c7be6c2716b87374f1c2aae4ab2bf5
Remove redundant mapping of net errors to strings.

The new list does not have the leading "net::ERR_", to slightly reduce
the size of net when compiled.  This reduces the size of libcronet.so
by about 8k, with symbols stripped.

Also add a function to get network error strings without the leading,
"net::" as a number of consumers were removing it with duplicated code.

This CL slight breaks NetLog loading functionality - loading old logs
in new versions  will result in error codes missing the leading "ERR_",
and the other direction results in error codes having an extra leading
"ERR_".

BUG=399025

Review URL: https://codereview.chromium.org/432553003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288065 0039d316-1c4b-4281-b951-d872f2087c98
16 files changed:
chrome/browser/errorpage_browsertest.cc
chrome/browser/guest_view/web_view/web_view_guest.cc
chrome/browser/resources/net_internals/main.js
chrome/browser/resources/net_internals/source_entry.js
chrome/common/localized_error.cc
chrome/test/data/webui/net_internals/dns_view.js
chrome/test/data/webui/net_internals/test_view.js
chromeos/network/onc/onc_certificate_importer_impl.cc
components/cronet/android/org_chromium_net_UrlRequest.cc
content/child/socket_stream_dispatcher.cc
device/bluetooth/bluetooth_socket_win.cc
net/base/net_errors.cc
net/base/net_errors.h
net/base/net_log_logger.cc
net/quic/crypto/proof_verifier_chromium.cc
net/tools/gdig/gdig.cc