summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/bookmark_manager_view.cc
diff options
context:
space:
mode:
authorsky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-12 16:54:44 +0000
committersky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-12 16:54:44 +0000
commit579776669a98ccd550bbee50c3eea37fbea1dc3f (patch)
tree429026e6c804c1b013eeb352eac4ca3e4a0bce6b /chrome/browser/views/bookmark_manager_view.cc
parentf87a4bf419625a4b240557168397ac507d987038 (diff)
downloadchromium_src-579776669a98ccd550bbee50c3eea37fbea1dc3f.zip
chromium_src-579776669a98ccd550bbee50c3eea37fbea1dc3f.tar.gz
chromium_src-579776669a98ccd550bbee50c3eea37fbea1dc3f.tar.bz2
Changes bookmark manager's import to show a description in the files
of type instead of *.html. BUG=4479 TEST=Bring up the bookmark manager, click tools->import. Make sure the import dialog 'files of type' has something like 'Chrome Document' (although this depends upon your registry), and that selecting it shows all html and htm files. Additionally make sure you have 'all files' in the 'files of type' combobox too. Review URL: http://codereview.chromium.org/14025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6890 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/bookmark_manager_view.cc')
-rw-r--r--chrome/browser/views/bookmark_manager_view.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/chrome/browser/views/bookmark_manager_view.cc b/chrome/browser/views/bookmark_manager_view.cc
index 141f57b..1f39d0f 100644
--- a/chrome/browser/views/bookmark_manager_view.cc
+++ b/chrome/browser/views/bookmark_manager_view.cc
@@ -700,16 +700,12 @@ void BookmarkManagerView::ShowToolsMenu(HWND host, int x, int y) {
views::MenuItemView::TOPLEFT, true);
}
-// The filter used when opening a file.
-// TODO(sky): need a textual description here once we can add new
-// strings.
-static const wchar_t KFilterString[] = L"*.html\0*.html;*.htm\0";
-
void BookmarkManagerView::ShowImportBookmarksFileChooser() {
if (select_file_dialog_.get())
select_file_dialog_->ListenerDestroyed();
- std::wstring filter_string(KFilterString, arraysize(KFilterString));
+ std::wstring filter_string =
+ win_util::GetFileFilterFromExtensions(L"*.html;*.htm", true);
select_file_dialog_ = SelectFileDialog::Create(this);
select_file_dialog_->SelectFile(
SelectFileDialog::SELECT_OPEN_FILE, std::wstring(), L"bookmarks.html",