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

Unified Diff: chrome/browser/chromeos/login/supervised/supervised_user_authentication.cc

Issue 1279123004: Replace ToLower calls to the new format (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/browser/chromeos/login/supervised/supervised_user_authentication.cc
diff --git a/chrome/browser/chromeos/login/supervised/supervised_user_authentication.cc b/chrome/browser/chromeos/login/supervised/supervised_user_authentication.cc
index b4a64a35b45edd4d75d1790465b6a74a07777263..389dcc5de8a04e8d9321ab68648efaf25d758a04 100644
--- a/chrome/browser/chromeos/login/supervised/supervised_user_authentication.cc
+++ b/chrome/browser/chromeos/login/supervised/supervised_user_authentication.cc
@@ -40,9 +40,8 @@ const int kMasterKeySize = 32;
std::string CreateSalt() {
char result[kSaltSize];
crypto::RandBytes(&result, sizeof(result));
- return base::StringToLowerASCII(base::HexEncode(
- reinterpret_cast<const void*>(result),
- sizeof(result)));
+ return base::ToLowerASCII(
+ base::HexEncode(reinterpret_cast<const void*>(result), sizeof(result)));
}
std::string BuildRawHMACKey() {
@@ -164,7 +163,7 @@ bool SupervisedUserAuthentication::FillDataForNewUser(
std::string SupervisedUserAuthentication::GenerateMasterKey() {
char master_key_bytes[kMasterKeySize];
crypto::RandBytes(&master_key_bytes, sizeof(master_key_bytes));
- return base::StringToLowerASCII(
+ return base::ToLowerASCII(
base::HexEncode(reinterpret_cast<const void*>(master_key_bytes),
sizeof(master_key_bytes)));
}

Powered by Google App Engine
This is Rietveld 408576698