Chromium Code Reviews| Index: chrome/common/localized_error.cc |
| diff --git a/chrome/common/localized_error.cc b/chrome/common/localized_error.cc |
| index ecff88ff9ced20dd5db90d30fa2557c76ceee9f4..ccee5c753c0eef7caa8b0ca8ae2951fb7da76881 100644 |
| --- a/chrome/common/localized_error.cc |
| +++ b/chrome/common/localized_error.cc |
| @@ -578,11 +578,7 @@ void LocalizedError::GetStrings(int error_code, |
| base::string16 error_string; |
| if (error_domain == net::kErrorDomain) { |
| // Non-internationalized error string, for debugging Chrome itself. |
| - std::string ascii_error_string = net::ErrorToString(error_code); |
| - // Remove the leading "net::" from the returned string. |
| - DCHECK(StartsWithASCII(ascii_error_string, "net::", true)); |
| - ascii_error_string.erase(0, 5); |
|
eroman
2014/08/05 22:54:50
wow, this was duplicated in lots of places!
|
| - error_string = base::ASCIIToUTF16(ascii_error_string); |
| + error_string = base::ASCIIToUTF16(net::ErrorToShortString(error_code)); |
| } else if (error_domain == chrome_common_net::kDnsProbeErrorDomain) { |
| std::string ascii_error_string = |
| chrome_common_net::DnsProbeStatusToString(error_code); |