fix: don't create last saved path if none exists (#27745)

This commit is contained in:
Shelley Vohr 2021-02-18 23:27:29 +00:00 committed by GitHub
parent 599f398ddc
commit b12e47b798
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 8 deletions

View file

@ -52,6 +52,8 @@ class ElectronDownloadManagerDelegate
content::DownloadTargetCallback download_callback,
gin_helper::Dictionary result);
base::FilePath last_saved_directory_;
content::DownloadManager* download_manager_;
base::WeakPtrFactory<ElectronDownloadManagerDelegate> weak_ptr_factory_{this};