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

Unified Diff: ui/shell_dialogs/select_file_dialog.h

Issue 2804793002: Print Preview: Fix failure to save with long page title (Closed)
Patch Set: Remove unused line Created 3 years, 8 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/shell_dialogs/BUILD.gn ('k') | ui/shell_dialogs/select_file_dialog.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ui/shell_dialogs/BUILD.gn ('k') | ui/shell_dialogs/select_file_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698