| Index: components/crx_file/crx_file.cc
|
| diff --git a/components/crx_file/crx_file.cc b/components/crx_file/crx_file.cc
|
| index 7a310aca98828693d9b2bc4e235fbb76b7b7b36f..2445ef1e6629bf5c439bfe0551acddde6d53ce60 100644
|
| --- a/components/crx_file/crx_file.cc
|
| +++ b/components/crx_file/crx_file.cc
|
| @@ -111,7 +111,7 @@ CrxFile::ValidateError CrxFile::ValidateSignature(
|
| base::ScopedFILE file(base::OpenFile(crx_path, "rb"));
|
| std::unique_ptr<crypto::SecureHash> hash;
|
| if (!expected_hash.empty())
|
| - hash.reset(crypto::SecureHash::Create(crypto::SecureHash::SHA256));
|
| + hash = crypto::SecureHash::Create(crypto::SecureHash::SHA256);
|
|
|
| if (!file.get())
|
| return ValidateError::CRX_FILE_NOT_READABLE;
|
|
|