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

Unified Diff: chrome/renderer/localized_error.cc

Issue 10640019: Remove the HANDLED_EXTERNALLY status code. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: hack, hack, hack Created 8 years, 6 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
Index: chrome/renderer/localized_error.cc
diff --git a/chrome/renderer/localized_error.cc b/chrome/renderer/localized_error.cc
index 430c4afc9957475a75443a998a7959d43fadc5fa..0da06e29b9464a1579ff785f7a70a49fa7577087 100644
--- a/chrome/renderer/localized_error.cc
+++ b/chrome/renderer/localized_error.cc
@@ -371,7 +371,7 @@ string16 GetErrorDetailsString(const std::string& error_domain,
const string16& details) {
int error_page_template;
const char* error_string;
- if (error_domain == net::kErrorDomain) {
+ if (error_domain == net::kErrorDomain || error_domain == "ext") {
error_page_template = IDS_ERRORPAGES_DETAILS_TEMPLATE;
error_string = net::ErrorToString(error_code);
DCHECK(error_code < 0); // Net error codes are negative.
@@ -402,7 +402,7 @@ const LocalizedErrorMap* FindErrorMapInArray(const LocalizedErrorMap* maps,
const LocalizedErrorMap* LookupErrorMap(const std::string& error_domain,
int error_code) {
- if (error_domain == net::kErrorDomain) {
+ if (error_domain == net::kErrorDomain || error_domain == "ext") {
return FindErrorMapInArray(net_error_options,
arraysize(net_error_options),
error_code);

Powered by Google App Engine
This is Rietveld 408576698