|
11 | 11 | #include "base/strings/string_util.h"
|
12 | 12 | #include "base/strings/utf_string_conversions.h"
|
13 | 13 | #include "base/values.h"
|
| 14 | +#if !defined(TOOLKIT_QT) |
14 | 15 | #include "chrome/common/extensions/extension_constants.h"
|
15 | 16 | #include "chrome/common/extensions/extension_icon_set.h"
|
16 | 17 | #include "chrome/common/extensions/extension_set.h"
|
17 | 18 | #include "chrome/common/extensions/manifest_handlers/icons_handler.h"
|
| 19 | +#endif // !defined(TOOLKIT_QT) |
18 | 20 | #include "chrome/common/net/net_error_info.h"
|
19 | 21 | #include "grit/chromium_strings.h"
|
20 | 22 | #include "grit/generated_resources.h"
|
|
30 | 32 | #include "base/win/windows_version.h"
|
31 | 33 | #endif
|
32 | 34 |
|
| 35 | +#if defined(TOOLKIT_QT) |
| 36 | +// Used to fetch the application name |
| 37 | +#include "web_engine_library_info.h" |
| 38 | +#endif |
| 39 | + |
33 | 40 | using blink::WebURLError;
|
34 | 41 |
|
35 | 42 | // Some error pages have no details.
|
@@ -552,7 +559,11 @@ void LocalizedError::GetStrings(int error_code,
|
552 | 559 | summary->SetString("hostName", net::IDNToUnicode(failed_url.host(),
|
553 | 560 | accept_languages));
|
554 | 561 | summary->SetString("productName",
|
| 562 | +#if !defined(TOOLKIT_QT) |
555 | 563 | l10n_util::GetStringUTF16(IDS_PRODUCT_NAME));
|
| 564 | +#else |
| 565 | + WebEngineLibraryInfo::getApplicationName()); |
| 566 | +#endif |
556 | 567 |
|
557 | 568 | error_strings->SetString(
|
558 | 569 | "more", l10n_util::GetStringUTF16(IDS_ERRORPAGES_BUTTON_MORE));
|
@@ -787,6 +798,8 @@ bool LocalizedError::HasStrings(const std::string& error_domain,
|
787 | 798 | return LookupErrorMap(error_domain, error_code, /*is_post=*/false) != NULL;
|
788 | 799 | }
|
789 | 800 |
|
| 801 | + |
| 802 | +#if !defined(TOOLKIT_QT) |
790 | 803 | void LocalizedError::GetAppErrorStrings(
|
791 | 804 | const GURL& display_url,
|
792 | 805 | const extensions::Extension* app,
|
@@ -826,3 +839,4 @@ void LocalizedError::GetAppErrorStrings(
|
826 | 839 | error_strings->Set("suggestionsLearnMore", suggest_learn_more);
|
827 | 840 | #endif // defined(OS_CHROMEOS)
|
828 | 841 | }
|
| 842 | +#endif // !defined(TOOLKIT_QT) |
0 commit comments