From 7d90b44187cfa8f93df6a6341da41cf8192d18ad Mon Sep 17 00:00:00 2001 From: Pierre Rossi Date: Tue, 17 Jun 2014 16:15:35 +0200 Subject: Expose better error information in loadRequest. Use the chromium localized error strings for that purpose, otherwise the error description is always empty. While we're at it, let's tap into the chromium error pages, which should hopefully make sense for most errors, and add some static asserts to check that the qt quick enum and the core one are in sync. Change-Id: Icf8fa7c3bf4a674c60a10950422135fb6930447a Reviewed-by: Andras Becsi --- src/core/web_engine_library_info.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/core/web_engine_library_info.h') diff --git a/src/core/web_engine_library_info.h b/src/core/web_engine_library_info.h index 84fee12af..4ce760dc4 100644 --- a/src/core/web_engine_library_info.h +++ b/src/core/web_engine_library_info.h @@ -43,6 +43,7 @@ #define WEB_ENGINE_LIBRARY_INFO_H #include "base/files/file_path.h" +#include "base/strings/string16.h" enum { QT_RESOURCES_PAK = 5000 }; @@ -50,6 +51,8 @@ enum { class WebEngineLibraryInfo { public: static base::FilePath getPath(int key); + // Called by localized_error in our custom chrome layer + static base::string16 getApplicationName(); }; -- cgit v1.2.3