Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: ui/base/dialogs/select_file_dialog_mac.mm

Issue 10908262: [cros] disable GDrive option on certain file pickers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: invert default in file manager Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/dialogs/select_file_dialog.cc ('k') | ui/base/dialogs/select_file_dialog_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e0f4003276f0cfa6bd9ea6d77be3bf4a9003eaab 100644
--- a/ui/base/dialogs/select_file_dialog_mac.mm
+++ b/ui/base/dialogs/select_file_dialog_mac.mm
@@ -235,7 +235,7 @@ void SelectFileDialogImpl::SelectFileImpl(
[dialog setAllowedFileTypes:allowed_file_types];
// else we'll pass it in when we run the open panel
- if (file_types->include_all_files)
+ if (file_types->include_all_files || file_types->extensions.empty())
[dialog setAllowsOtherFileTypes:YES];
if (file_types->extension_description_overrides.size() > 1) {
« no previous file with comments | « ui/base/dialogs/select_file_dialog.cc ('k') | ui/base/dialogs/select_file_dialog_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698