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

Unified Diff: chrome/browser/chromeos/login/parallel_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/parallel_authenticator.cc
diff --git a/chrome/browser/chromeos/login/parallel_authenticator.cc b/chrome/browser/chromeos/login/parallel_authenticator.cc
index 54b5aaf7e8e5cbffd9f6d14ea0bfe758958f2015..85f724d8e604f8c672d46b3f9a00b901e1d85a13 100644
--- a/chrome/browser/chromeos/login/parallel_authenticator.cc
+++ b/chrome/browser/chromeos/login/parallel_authenticator.cc
@@ -187,6 +187,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 how's this helping to fix this problem? you've ju
stevenjb 2013/09/20 16:42:23 The crash we were seeing occurred because some ext
zel 2013/09/20 16:48:40 Yes, I would rather: a) Find out which extension i
char passhash_buf[kPasswordHashLength];
// Hash salt and password

Powered by Google App Engine
This is Rietveld 408576698