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

Unified Diff: chrome/browser/signin/local_auth.cc

Issue 183953005: Rename components's Encryptor to OSEncrypt. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: similarity Created 6 years, 10 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/signin/local_auth.cc
diff --git a/chrome/browser/signin/local_auth.cc b/chrome/browser/signin/local_auth.cc
index 2bff8fb0880985a3bf8a5b29bfef2018f5fe5806..7f7b14cddc67a355882104440107c06a9096bcae 100644
--- a/chrome/browser/signin/local_auth.cc
+++ b/chrome/browser/signin/local_auth.cc
@@ -14,7 +14,7 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/common/pref_names.h"
-#include "components/encryptor/encryptor.h"
+#include "components/encryptor/os_crypt.h"
#include "components/user_prefs/pref_registry_syncable.h"
#include "crypto/random.h"
#include "crypto/secure_util.h"
@@ -62,7 +62,7 @@ std::string EncodePasswordHashRecord(const std::string& record,
// Encrypt the hash using the OS account-password protection (if available).
std::string encoded;
- const bool success = Encryptor::EncryptString(record, &encoded);
+ const bool success = OSCrypt::EncryptString(record, &encoded);
DCHECK(success);
// Convert binary record to text for preference database.
@@ -91,7 +91,7 @@ bool DecodePasswordHashRecord(const std::string& encoded,
return false;
// Decrypt the record using the OS account-password protection (if available).
- return Encryptor::DecryptString(unbase64, decoded);
+ return OSCrypt::DecryptString(unbase64, decoded);
}
} // namespace
« no previous file with comments | « chrome/browser/services/gcm/gcm_profile_service_unittest.cc ('k') | chrome/browser/signin/local_auth_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698