summaryrefslogtreecommitdiffstats
path: root/chrome/common/localized_error.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/localized_error.cc')
-rw-r--r--chrome/common/localized_error.cc53
1 files changed, 0 insertions, 53 deletions
diff --git a/chrome/common/localized_error.cc b/chrome/common/localized_error.cc
index cb3aaee..568b780 100644
--- a/chrome/common/localized_error.cc
+++ b/chrome/common/localized_error.cc
@@ -34,12 +34,6 @@
#include "chrome/common/chrome_switches.h"
#endif
-#if defined(ENABLE_EXTENSIONS)
-#include "extensions/common/constants.h"
-#include "extensions/common/extension_icon_set.h"
-#include "extensions/common/manifest_handlers/icons_handler.h"
-#endif
-
using blink::WebURLError;
// Some error pages have no details.
@@ -52,11 +46,6 @@ static const char kRedirectLoopLearnMoreUrl[] =
static const char kWeakDHKeyLearnMoreUrl[] =
"https://www.chromium.org/administrators/"
"err_ssl_weak_server_ephemeral_dh_key";
-#if defined(OS_CHROMEOS)
-static const char kAppWarningLearnMoreUrl[] =
- "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html"
- "?answer=1721911";
-#endif // defined(OS_CHROMEOS)
static const char kCachedCopyButtonFieldTrial[] =
"EnableGoogleCachedCopyTextExperiment";
static const char kCachedCopyButtonExpTypeControl[] = "control";
@@ -886,48 +875,6 @@ bool LocalizedError::HasStrings(const std::string& error_domain,
return LookupErrorMap(error_domain, error_code, /*is_post=*/false) != NULL;
}
-#if defined(ENABLE_EXTENSIONS)
-void LocalizedError::GetAppErrorStrings(
- const GURL& display_url,
- const extensions::Extension* app,
- const std::string& locale,
- base::DictionaryValue* error_strings) {
- DCHECK(app);
-
- webui::SetLoadTimeDataDefaults(locale, error_strings);
-
- base::string16 failed_url(base::ASCIIToUTF16(display_url.spec()));
- // URLs are always LTR.
- if (base::i18n::IsRTL())
- base::i18n::WrapStringWithLTRFormatting(&failed_url);
- error_strings->SetString(
- "url", l10n_util::GetStringFUTF16(IDS_ERRORPAGES_TITLE_NOT_AVAILABLE,
- failed_url.c_str()));
-
- error_strings->SetString("title", app->name());
- error_strings->SetString(
- "icon",
- extensions::IconsInfo::GetIconURL(
- app,
- extension_misc::EXTENSION_ICON_GIGANTOR,
- ExtensionIconSet::MATCH_SMALLER).spec());
- error_strings->SetString("name", app->name());
- error_strings->SetString(
- "msg",
- l10n_util::GetStringUTF16(IDS_ERRORPAGES_APP_WARNING));
-
-#if defined(OS_CHROMEOS)
- GURL learn_more_url(kAppWarningLearnMoreUrl);
- base::DictionaryValue* suggest_learn_more = new base::DictionaryValue();
- suggest_learn_more->SetString("msg",
- l10n_util::GetStringUTF16(
- IDS_ERRORPAGES_SUGGESTION_LEARNMORE_BODY));
- suggest_learn_more->SetString("learnMoreUrl", learn_more_url.spec());
- error_strings->Set("suggestionsLearnMore", suggest_learn_more);
-#endif // defined(OS_CHROMEOS)
-}
-#endif
-
void LocalizedError::EnableGoogleCachedCopyButtonExperiment(
base::ListValue* suggestions,
base::DictionaryValue* error_strings) {