| Index: ui/shell_dialogs/select_file_dialog.h
|
| diff --git a/ui/shell_dialogs/select_file_dialog.h b/ui/shell_dialogs/select_file_dialog.h
|
| index 4b4fd7795003f54343bd25914ee2e26a821242f9..e5d288a07e98c84665ffe07d26b6722d65487882 100644
|
| --- a/ui/shell_dialogs/select_file_dialog.h
|
| +++ b/ui/shell_dialogs/select_file_dialog.h
|
| @@ -135,6 +135,11 @@ class SHELL_DIALOGS_EXPORT SelectFileDialog
|
| AllowedPaths allowed_paths;
|
| };
|
|
|
| + // Returns a file path with a base name at most 255 characters long. This
|
| + // is the limit on Windows and Linux, and on Windows the system file
|
| + // selection dialog will fail to open if the file name exceeds 255 characters.
|
| + static base::FilePath GetShortenedFilePath(const base::FilePath& path);
|
| +
|
| // Selects a File.
|
| // Before doing anything this function checks if FileBrowsing is forbidden
|
| // by Policy. If so, it tries to show an InfoBar and behaves as though no File
|
|
|