Check download item save path before prompting

This commit is contained in:
Kevin Sawicki 2016-08-25 14:34:48 -07:00
parent 1de8a0dcf9
commit cf93e3e713
2 changed files with 28 additions and 19 deletions

View file

@ -46,6 +46,9 @@ class AtomDownloadManagerDelegate : public content::DownloadManagerDelegate {
void GetNextId(const content::DownloadIdCallback& callback) override;
private:
// Get the save path set on the associated api::DownloadItem object
void GetItemSavePath(content::DownloadItem* item, base::FilePath* path);
content::DownloadManager* download_manager_;
base::WeakPtrFactory<AtomDownloadManagerDelegate> weak_ptr_factory_;