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

Unified Diff: chrome/browser/extensions/install_signer.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
« no previous file with comments | « chrome/browser/extensions/external_provider_impl.cc ('k') | chrome/browser/extensions/install_verifier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/install_signer.cc
diff --git a/chrome/browser/extensions/install_signer.cc b/chrome/browser/extensions/install_signer.cc
index 9bf403c7bc0b405094025d9ee6d59ac42ab6029c..0100058855b38bf70253c6e7e8b95f9f166d4fca 100644
--- a/chrome/browser/extensions/install_signer.cc
+++ b/chrome/browser/extensions/install_signer.cc
@@ -99,7 +99,7 @@ bool HashWithMachineId(const std::string& salt, std::string* result) {
hash->Update(salt.data(), salt.size());
std::string result_bytes(crypto::kSHA256Length, 0);
- hash->Finish(string_as_array(&result_bytes), result_bytes.size());
+ hash->Finish(base::string_as_array(&result_bytes), result_bytes.size());
base::Base64Encode(result_bytes, result);
return true;
@@ -356,7 +356,7 @@ void InstallSigner::GetSignature(const SignatureCallback& callback) {
salt_ = std::string(kSaltBytes, 0);
DCHECK_EQ(kSaltBytes, salt_.size());
- crypto::RandBytes(string_as_array(&salt_), salt_.size());
+ crypto::RandBytes(base::string_as_array(&salt_), salt_.size());
std::string hash_base64;
if (!HashWithMachineId(salt_, &hash_base64)) {
« no previous file with comments | « chrome/browser/extensions/external_provider_impl.cc ('k') | chrome/browser/extensions/install_verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698