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

Unified Diff: chrome/browser/chromeos/login/managed/managed_user_authenticator.cc

Issue 23903051: Eliminate CHECK from CryptohomeLibrary::LoadSystemSalt (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 3 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/managed/managed_user_authenticator.cc
diff --git a/chrome/browser/chromeos/login/managed/managed_user_authenticator.cc b/chrome/browser/chromeos/login/managed/managed_user_authenticator.cc
index 4984cf04828ae0b9d06a699ae9f1cd3883530851..29e394823ca7133c9a6be00db390001feb001278 100644
--- a/chrome/browser/chromeos/login/managed/managed_user_authenticator.cc
+++ b/chrome/browser/chromeos/login/managed/managed_user_authenticator.cc
@@ -103,6 +103,8 @@ std::string HashPassword(const std::string& password) {
// Get salt, ascii encode, update sha with that, then update with ascii
// of password, then end.
std::string ascii_salt = CryptohomeLibrary::Get()->GetSystemSalt();
+ // TODO(stevenjb/nkostylev): Handle empty system salt gracefully.
+ CHECK(!ascii_salt.empty());
zel 2013/09/20 16:28:05 same here
char passhash_buf[kPasswordHashLength];
// Hash salt and password

Powered by Google App Engine
This is Rietveld 408576698