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

Unified Diff: chrome/browser/download/download_file_picker.h

Issue 1513413002: Enable "Hide Extension" option when "Save Link As" on the Mac Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nits. Created 5 years 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
Index: chrome/browser/download/download_file_picker.h
diff --git a/chrome/browser/download/download_file_picker.h b/chrome/browser/download/download_file_picker.h
index bf7754dac3c63cff2508eb4a1104e6377f731706..8648504c8850fe6686414908c468cb44cb625158 100644
--- a/chrome/browser/download/download_file_picker.h
+++ b/chrome/browser/download/download_file_picker.h
@@ -27,8 +27,8 @@ class DownloadFilePicker : public ui::SelectFileDialog::Listener {
// selection, then this parameter will be the empty path. On Chrome OS,
// this path may contain virtual mount points if the user chose a virtual
// path (e.g. Google Drive).
- typedef base::Callback<void(const base::FilePath& virtual_path)>
- FileSelectedCallback;
+ typedef base::Callback<void(const base::FilePath& virtual_path,
+ bool hide_file_extension)> FileSelectedCallback;
// Display a file picker dialog for |item|. The |suggested_path| will be used
// as the initial path displayed to the user. |callback| will always be
@@ -45,12 +45,16 @@ class DownloadFilePicker : public ui::SelectFileDialog::Listener {
// Runs |file_selected_callback_| with |virtual_path| and then deletes this
// object.
- void OnFileSelected(const base::FilePath& virtual_path);
+ void OnFileSelected(const base::FilePath& virtual_path,
+ bool hide_file_extension);
// SelectFileDialog::Listener implementation.
void FileSelected(const base::FilePath& path,
int index,
void* params) override;
+ void FileSelectedWithExtraInfo(const ui::SelectedFileInfo& file,
+ int index,
+ void* params) override;
void FileSelectionCanceled(void* params) override;
// Initially suggested path.
« no previous file with comments | « chrome/browser/download/chrome_download_manager_delegate_unittest.cc ('k') | chrome/browser/download/download_file_picker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698