From: Piotr Kosko Date: Wed, 25 Apr 2018 12:29:45 +0000 (+0000) Subject: Merge "[Download] Synchronously checking access to file" into tizen X-Git-Tag: submit/tizen/20180427.125243~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=00645c1e8cb442c6d012898d0fce70e5a4146ea2;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git Merge "[Download] Synchronously checking access to file" into tizen --- 00645c1e8cb442c6d012898d0fce70e5a4146ea2 diff --cc src/download/download_instance.cc index f33102c5,b3d67783..47bd3267 --- a/src/download/download_instance.cc +++ b/src/download/download_instance.cc @@@ -571,9 -483,14 +571,14 @@@ void DownloadInstance::DownloadManagerS } } + CHECK_STORAGE_ACCESS(diPtr->destination.empty() + ? common::FilesystemProvider::Create().GetRealPath("downloads") + : diPtr->destination, + &out); + if (!args.get("fileName").is()) { if (args.get("fileName").is() && args.get("fileName").get() != "") { - diPtr->file_name = args.get("fileName").get(); + di_ptr->file_name = args.get("fileName").get(); } }