| Index: content/browser/download/base_file.cc
|
| diff --git a/content/browser/download/base_file.cc b/content/browser/download/base_file.cc
|
| index 7593df8c1c52ed488ab3b19576b6e258ead7a45a..0662cdf2acc10e370cfa16329b3c333554001d48 100644
|
| --- a/content/browser/download/base_file.cc
|
| +++ b/content/browser/download/base_file.cc
|
| @@ -55,10 +55,12 @@ bool BaseFile::Initialize(bool calculate_hash) {
|
| if (calculate_hash_)
|
| secure_hash_.reset(crypto::SecureHash::Create(crypto::SecureHash::SHA256));
|
|
|
| - if (!full_path_.empty() ||
|
| - download_util::CreateTemporaryFileForDownload(&full_path_))
|
| - return Open();
|
| - return false;
|
| + FilePath save_path =
|
| + download_util::GetDefaultDownloadDirectoryFromPathService();
|
| + if (full_path_.empty() &&
|
| + !file_util::CreateTemporaryFileInDir(save_path, &full_path_))
|
| + return false;
|
| + return Open();
|
| }
|
|
|
| bool BaseFile::AppendDataToFile(const char* data, size_t data_len) {
|
|
|