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

Unified Diff: net/base/net_errors.cc

Issue 1639953002: Network error interstitial update - add suggestions list (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up styling Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« net/base/net_errors.h ('K') | « net/base/net_errors.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/net_errors.cc
diff --git a/net/base/net_errors.cc b/net/base/net_errors.cc
index ddba87b94c59fbbd39e06aae4a2725bca19126e1..0406e0118437609e55524a56974357b8c071827a 100644
--- a/net/base/net_errors.cc
+++ b/net/base/net_errors.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "net/base/net_errors.h"
+#include "base/strings/string_number_conversions.h"
namespace net {
@@ -31,6 +32,10 @@ std::string ErrorToShortString(int error) {
return std::string("ERR_") + error_string;
}
+std::string HttpErrorCodeToString(int error) {
+ return std::string("HTTP_ERROR_") + base::IntToString(error);
+}
+
bool IsCertificateError(int error) {
// Certificate errors are negative integers from net::ERR_CERT_BEGIN
// (inclusive) to net::ERR_CERT_END (exclusive) in *decreasing* order.
« net/base/net_errors.h ('K') | « net/base/net_errors.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698