Merge pull request #3234 from atom/win-remove-default-filter

Win: Remove adding default file filter(*.*) in a save dialog.
This commit is contained in:
Cheng Zhao 2015-10-27 14:30:35 +08:00
commit 3042f604cc

View file

@ -34,12 +34,6 @@ bool IsDirectory(const base::FilePath& path) {
void ConvertFilters(const Filters& filters,
std::vector<std::wstring>* buffer,
std::vector<COMDLG_FILTERSPEC>* filterspec) {
if (filters.empty()) {
COMDLG_FILTERSPEC spec = { L"All Files (*.*)", L"*.*" };
filterspec->push_back(spec);
return;
}
buffer->reserve(filters.size() * 2);
for (size_t i = 0; i < filters.size(); ++i) {
const Filter& filter = filters[i];