Chromium Code Reviews| Index: ui/base/dialogs/select_file_dialog_mac.mm |
| diff --git a/ui/base/dialogs/select_file_dialog_mac.mm b/ui/base/dialogs/select_file_dialog_mac.mm |
| index e844c937811b8c9203baced25f59a8dfee83a088..0fe1df0287fa5553b45a4c9575f715da6266fa7b 100644 |
| --- a/ui/base/dialogs/select_file_dialog_mac.mm |
| +++ b/ui/base/dialogs/select_file_dialog_mac.mm |
| @@ -227,6 +227,11 @@ void SelectFileDialogImpl::SelectFileImpl( |
| base::mac::ScopedCFTypeRef<CFStringRef> uti( |
| CreateUTIFromExtension(ext_list[j])); |
| [file_type_set addObject:base::mac::CFToNSCast(uti.get())]; |
| + |
| + // Always allow the extension itself, in case the UTI does not exist. |
| + base::mac::ScopedCFTypeRef<CFStringRef> ext_cf( |
| + base::SysUTF8ToCFStringRef(ext_list[j])); |
| + [file_type_set addObject:base::mac::CFToNSCast(ext_cf.get())]; |
|
Avi (use Gerrit)
2012/09/13 05:52:39
UTIs always exist. Dynamic UTIs exist to round-tri
thorogood
2012/09/16 23:50:49
Done, I've attached it to the bug (which I've CC'e
Avi (use Gerrit)
2012/09/17 02:41:45
What The F. Can you link the bug in the comment?
thorogood
2012/09/17 03:19:06
Done, linked to the issue 148840.
|
| } |
| } |
| allowed_file_types = [file_type_set allObjects]; |