| Index: chrome/common/component_flash_hint_file_linux.cc
|
| diff --git a/chrome/common/component_flash_hint_file_linux.cc b/chrome/common/component_flash_hint_file_linux.cc
|
| index f59741d529ce8e09b967051ccfbdeefc0fb1d8a6..91c91378bcdbc6d718b49f5a133c0d4b170da821 100644
|
| --- a/chrome/common/component_flash_hint_file_linux.cc
|
| +++ b/chrome/common/component_flash_hint_file_linux.cc
|
| @@ -133,7 +133,7 @@ bool RecordFlashUpdate(const base::FilePath& unpacked_plugin,
|
| return false;
|
|
|
| std::string hash(crypto::kSHA256Length, 0);
|
| - SHA256Hash(mapped_file, string_as_array(&hash), hash.size());
|
| + SHA256Hash(mapped_file, base::string_as_array(&hash), hash.size());
|
|
|
| return WriteToDisk(kCurrentHintFileVersion,
|
| crypto::SecureHash::Algorithm::SHA256, hash, moved_plugin,
|
| @@ -209,7 +209,8 @@ bool VerifyAndReturnFlashLocation(base::FilePath* path,
|
|
|
| std::vector<uint8_t> file_hash(crypto::kSHA256Length, 0);
|
| SHA256Hash(plugin_file, &file_hash[0], file_hash.size());
|
| - if (!crypto::SecureMemEqual(&file_hash[0], string_as_array(&decoded_hash),
|
| + if (!crypto::SecureMemEqual(&file_hash[0],
|
| + base::string_as_array(&decoded_hash),
|
| crypto::kSHA256Length)) {
|
| LOG(ERROR)
|
| << "The hash recorded in the component flash hint file does not "
|
|
|