diff options
author | xiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-11 17:13:14 +0000 |
---|---|---|
committer | xiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-11 17:13:14 +0000 |
commit | 183e2f015c27f84cba7972ba978ee96447abd3fc (patch) | |
tree | 431faac1ca24f50cda70c524bb3931576496a212 /chrome/browser/dom_ui | |
parent | fd4f139fe08bc9596a7295fb5fee8300fb34856a (diff) | |
download | chromium_src-183e2f015c27f84cba7972ba978ee96447abd3fc.zip chromium_src-183e2f015c27f84cba7972ba978ee96447abd3fc.tar.gz chromium_src-183e2f015c27f84cba7972ba978ee96447abd3fc.tar.bz2 |
Add an error message when user clicks a file of unknown type.
- Replace name link with name+error message in content browser;
- Show an error message ChromeOS's openItem;
- Update SimpleErrorBox so that it runs in a Chrome window;
- Put back "Show in folder" in download page and make it work with content
browser;
BUG=chromium-os:1637
TEST=Verify fix for chromium-os:1637 and verify error message pops up for unknown type file in downloads ui.
Review URL: http://codereview.chromium.org/2748007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49541 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/dom_ui')
-rw-r--r-- | chrome/browser/dom_ui/filebrowse_ui.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/dom_ui/filebrowse_ui.cc b/chrome/browser/dom_ui/filebrowse_ui.cc index b991e1cf..0436056 100644 --- a/chrome/browser/dom_ui/filebrowse_ui.cc +++ b/chrome/browser/dom_ui/filebrowse_ui.cc @@ -306,6 +306,8 @@ void FileBrowseUIHTMLSource::StartDataRequest(const std::string& path, NOTREACHED(); } localized_strings.SetString(L"downloadpath", default_download_path.value()); + localized_strings.SetString(L"error_unknown_file_type", + l10n_util::GetString(IDS_FILEBROWSER_ERROR_UNKNOWN_FILE_TYPE)); SetFontAndTextDirection(&localized_strings); static const base::StringPiece filebrowse_html( |