diff options
author | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-12 16:54:44 +0000 |
---|---|---|
committer | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-12 16:54:44 +0000 |
commit | 579776669a98ccd550bbee50c3eea37fbea1dc3f (patch) | |
tree | 429026e6c804c1b013eeb352eac4ca3e4a0bce6b /chrome/common/win_util.h | |
parent | f87a4bf419625a4b240557168397ac507d987038 (diff) | |
download | chromium_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/common/win_util.h')
-rw-r--r-- | chrome/common/win_util.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/common/win_util.h b/chrome/common/win_util.h index 2aac0a1..112f1bd 100644 --- a/chrome/common/win_util.h +++ b/chrome/common/win_util.h @@ -127,6 +127,13 @@ bool OpenItemWithExternalApp(const std::wstring& full_path); std::wstring GetFileFilterFromPath(const std::wstring& file_name); +// Returns a file filter whose description comes from the OS for the first file +// extension in |extensions|. |extensions| is a semicolon separated list of +// extensions. Each extension is specified as '*.foo' where foo is the +// extension. +std::wstring GetFileFilterFromExtensions(const std::wstring& extensions, + bool include_all_files); + // Prompt the user for location to save a file. 'suggested_name' is a full path // that gives the dialog box a hint as to how to initialize itself. // For example, a 'suggested_name' of: |