diff options
author | mkosiba@chromium.org <mkosiba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-11 15:31:58 +0000 |
---|---|---|
committer | mkosiba@chromium.org <mkosiba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-11 15:31:58 +0000 |
commit | d7b175e8762301a1bfca9d17681111bbf5bf5c0a (patch) | |
tree | 3dbd962ef0417f8977eebfd362ee5ffbcb5c1e27 /chrome/renderer/localized_error.cc | |
parent | c2ee7f0e04e752bd40b1461e92756e7a320e40ec (diff) | |
download | chromium_src-d7b175e8762301a1bfca9d17681111bbf5bf5c0a.zip chromium_src-d7b175e8762301a1bfca9d17681111bbf5bf5c0a.tar.gz chromium_src-d7b175e8762301a1bfca9d17681111bbf5bf5c0a.tar.bz2 |
Add error description to the DidFailProvisionalLoad callback.
This will add an error description field to the TabContentsObserver::
DidFailProvisionalLoad callback.
The change should not have any impact on current behavior.
This is needed for the Chromium port on Android.
BUG=none
TEST=base_unittests,content_unittests,browser_tests
Review URL: http://codereview.chromium.org/8142032
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104895 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/localized_error.cc')
-rw-r--r-- | chrome/renderer/localized_error.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/renderer/localized_error.cc b/chrome/renderer/localized_error.cc index 681d783..ad14e96 100644 --- a/chrome/renderer/localized_error.cc +++ b/chrome/renderer/localized_error.cc @@ -630,6 +630,15 @@ void LocalizedError::GetStrings(const WebKit::WebURLError& error, } } +string16 LocalizedError::GetErrorDetails(const WebKit::WebURLError& error) { + const LocalizedErrorMap* error_map = + LookupErrorMap(error.domain.utf8(), error.reason); + if (error_map) + return l10n_util::GetStringUTF16(error_map->details_resource_id); + else + return l10n_util::GetStringUTF16(IDS_ERRORPAGES_DETAILS_UNKNOWN); +} + bool LocalizedError::HasStrings(const std::string& error_domain, int error_code) { return LookupErrorMap(error_domain, error_code) != NULL; |