| Index: content/browser/download/base_file.cc
|
| diff --git a/content/browser/download/base_file.cc b/content/browser/download/base_file.cc
|
| index f9b80155018d4a00aa2a6df90bcb32b3666c2672..0ce0e10aeabd6adef5ea1181ba09a900adc73e00 100644
|
| --- a/content/browser/download/base_file.cc
|
| +++ b/content/browser/download/base_file.cc
|
| @@ -41,7 +41,8 @@ BaseFile::BaseFile(const base::FilePath& full_path,
|
| start_tick_(base::TimeTicks::Now()),
|
| calculate_hash_(calculate_hash),
|
| detached_(false),
|
| - bound_net_log_(bound_net_log) {
|
| + bound_net_log_(bound_net_log),
|
| + hide_file_extension_(false) {
|
| memcpy(sha256_hash_, kEmptySha256Hash, crypto::kSHA256Length);
|
| if (calculate_hash_) {
|
| secure_hash_.reset(crypto::SecureHash::Create(crypto::SecureHash::SHA256));
|
| @@ -251,6 +252,10 @@ std::string BaseFile::DebugString() const {
|
| detached_ ? 'T' : 'F');
|
| }
|
|
|
| +void BaseFile::set_hide_file_extension(bool hide_file_extension) {
|
| + hide_file_extension_ = hide_file_extension;
|
| +}
|
| +
|
| DownloadInterruptReason BaseFile::Open() {
|
| DCHECK_CURRENTLY_ON(BrowserThread::FILE);
|
| DCHECK(!detached_);
|
|
|