Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Issue 432553003: Remove redundant mapping of net errors to strings. (Closed)

Created:
6 years, 4 months ago by mmenke
Modified:
6 years, 4 months ago
CC:
chromium-reviews, darin-cc_chromium.org, cbentzel+watch_chromium.org, eroman, jam, mmenke
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288065

Patch Set 1 #

Patch Set 2 : Fix stuff #

Patch Set 3 : rebase #

Patch Set 4 : Fix tests #

Total comments: 9

Patch Set 5 : Response to comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -58 lines) Patch
M chrome/browser/errorpage_browsertest.cc View 1 chunk +1 line, -7 lines 0 comments Download
M chrome/browser/guest_view/web_view/web_view_guest.cc View 1 2 2 chunks +4 lines, -9 lines 0 comments Download
M chrome/browser/resources/net_internals/main.js View 1 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/resources/net_internals/source_entry.js View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/localized_error.cc View 1 chunk +1 line, -5 lines 0 comments Download
M chrome/test/data/webui/net_internals/dns_view.js View 1 2 3 5 chunks +6 lines, -6 lines 0 comments Download
M chrome/test/data/webui/net_internals/test_view.js View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chromeos/network/onc/onc_certificate_importer_impl.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M components/cronet/android/org_chromium_net_UrlRequest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/child/socket_stream_dispatcher.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_socket_win.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M net/base/net_errors.h View 1 2 3 4 2 chunks +6 lines, -9 lines 0 comments Download
M net/base/net_errors.cc View 1 2 3 4 1 chunk +21 lines, -4 lines 0 comments Download
M net/base/net_log_logger.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M net/quic/crypto/proof_verifier_chromium.cc View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download
M net/tools/gdig/gdig.cc View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
mmenke
I slightly changed the format of NetLog dumps, increasing them all by about 1k. That's ...
6 years, 4 months ago (2014-08-01 15:59:53 UTC) #1
eroman
Don't forget to update this too: https://code.google.com/p/chromium/codesearch#chromium/src/chrome/browser/resources/net_internals/source_entry.js&q=source_entry.js&sq=package:chromium&type=cs&l=48 The only breakage that happens when loading old ...
6 years, 4 months ago (2014-08-05 22:54:51 UTC) #2
mmenke
For external consumers, this CL basically makes two changes: It adds a function "ErrorToShortString", which ...
6 years, 4 months ago (2014-08-06 16:40:56 UTC) #3
Fady Samuel
guest_view lgtm
6 years, 4 months ago (2014-08-06 18:39:47 UTC) #4
Lei Zhang
*.cc files in chrome/ lgtm
6 years, 4 months ago (2014-08-06 18:39:52 UTC) #5
armansito
device/bluetooth & chromeos/network lgtm
6 years, 4 months ago (2014-08-06 20:46:15 UTC) #6
jam
lgtm
6 years, 4 months ago (2014-08-07 05:48:45 UTC) #7
mmenke
The CQ bit was checked by mmenke@chromium.org
6 years, 4 months ago (2014-08-07 11:28:58 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mmenke@chromium.org/432553003/180001
6 years, 4 months ago (2014-08-07 11:30:00 UTC) #9
commit-bot: I haz the power
6 years, 4 months ago (2014-08-07 16:12:13 UTC) #10
Message was sent while issue was closed.
Change committed as 288065

Powered by Google App Engine
This is Rietveld 408576698