Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Unified Diff: chrome/common/component_flash_hint_file_linux.cc

Issue 2230203002: chrome: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed accidental components/ change Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 "
« no previous file with comments | « chrome/browser/usb/web_usb_permission_provider.cc ('k') | chrome/common/variations/child_process_field_trial_syncer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698