diff options
author | wtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-14 23:09:37 +0000 |
---|---|---|
committer | wtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-14 23:09:37 +0000 |
commit | b21afb204b94299479ea5e7674c539554820b516 (patch) | |
tree | 4201b19685be6a5b5af0053da06b99e3b66b80a1 /chrome/renderer/localized_error.cc | |
parent | 5901d2e01f2197639578270d1e04f07d03812443 (diff) | |
download | chromium_src-b21afb204b94299479ea5e7674c539554820b516.zip chromium_src-b21afb204b94299479ea5e7674c539554820b516.tar.gz chromium_src-b21afb204b94299479ea5e7674c539554820b516.tar.bz2 |
Fix a regression in r59258.
Pass the original (negative) network error code to net::ErrorToString.
R=darin,mmenke
BUG=43767
TEST=Visits https://webmail.kabelbw.de/. Should see
net::ERR_SSL_WEAK_SERVER_EPHEMERAL_DH_KEY instead of net::<unknown>
in the error page.
Review URL: http://codereview.chromium.org/3440003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59448 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/localized_error.cc')
-rw-r--r-- | chrome/renderer/localized_error.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/renderer/localized_error.cc b/chrome/renderer/localized_error.cc index 394844d..cd5c6f9 100644 --- a/chrome/renderer/localized_error.cc +++ b/chrome/renderer/localized_error.cc @@ -205,9 +205,9 @@ string16 GetErrorDetailsString(const std::string& error_domain, const char* error_string; if (error_domain == net::kErrorDomain) { error_page_template = IDS_ERRORPAGES_DETAILS_TEMPLATE; + error_string = net::ErrorToString(error_code); DCHECK(error_code < 0); // Net error codes are negative. error_code = -error_code; - error_string = net::ErrorToString(error_code); } else if (error_domain == LocalizedError::kHttpErrorDomain) { error_page_template = IDS_ERRORPAGES_HTTP_DETAILS_TEMPLATE; error_string = HttpErrorToString(error_code); |