diff options
Diffstat (limited to 'chromium/chrome/common/localized_error.cc')
-rw-r--r-- | chromium/chrome/common/localized_error.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/chromium/chrome/common/localized_error.cc b/chromium/chrome/common/localized_error.cc index 4a90c898c4b..60f6108029d 100644 --- a/chromium/chrome/common/localized_error.cc +++ b/chromium/chrome/common/localized_error.cc @@ -11,10 +11,12 @@ #include "base/strings/string_util.h" #include "base/strings/utf_string_conversions.h" #include "base/values.h" +#if !defined(TOOLKIT_QT) #include "chrome/common/extensions/extension_constants.h" #include "chrome/common/extensions/extension_icon_set.h" #include "chrome/common/extensions/extension_set.h" #include "chrome/common/extensions/manifest_handlers/icons_handler.h" +#endif // !defined(TOOLKIT_QT) #include "chrome/common/net/net_error_info.h" #include "grit/chromium_strings.h" #include "grit/generated_resources.h" @@ -30,6 +32,11 @@ #include "base/win/windows_version.h" #endif +#if defined(TOOLKIT_QT) +// Used to fetch the application name +#include "web_engine_library_info.h" +#endif + using blink::WebURLError; // Some error pages have no details. @@ -552,7 +559,11 @@ void LocalizedError::GetStrings(int error_code, summary->SetString("hostName", net::IDNToUnicode(failed_url.host(), accept_languages)); summary->SetString("productName", +#if !defined(TOOLKIT_QT) l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)); +#else + WebEngineLibraryInfo::getApplicationName()); +#endif error_strings->SetString( "more", l10n_util::GetStringUTF16(IDS_ERRORPAGES_BUTTON_MORE)); @@ -787,6 +798,8 @@ bool LocalizedError::HasStrings(const std::string& error_domain, return LookupErrorMap(error_domain, error_code, /*is_post=*/false) != NULL; } + +#if !defined(TOOLKIT_QT) void LocalizedError::GetAppErrorStrings( const GURL& display_url, const extensions::Extension* app, @@ -826,3 +839,4 @@ void LocalizedError::GetAppErrorStrings( error_strings->Set("suggestionsLearnMore", suggest_learn_more); #endif // defined(OS_CHROMEOS) } +#endif // !defined(TOOLKIT_QT) |