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

Unified Diff: chrome/browser/chromeos/settings/token_encryptor.h

Issue 2095523002: Make //crypto factories return std::unique_ptr<>s (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: I'm blind Created 4 years, 6 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/settings/token_encryptor.h
diff --git a/chrome/browser/chromeos/settings/token_encryptor.h b/chrome/browser/chromeos/settings/token_encryptor.h
index 0ef1008bd56c81b54b2ee3d5711238d0a2cebe4a..d4d5e392bd62e93db7fcabb9de8100a622751633 100644
--- a/chrome/browser/chromeos/settings/token_encryptor.h
+++ b/chrome/browser/chromeos/settings/token_encryptor.h
@@ -47,8 +47,9 @@ class CryptohomeTokenEncryptor : public TokenEncryptor {
private:
// Converts |passphrase| to a SymmetricKey using the given |salt|.
- crypto::SymmetricKey* PassphraseToKey(const std::string& passphrase,
- const std::string& salt);
+ std::unique_ptr<crypto::SymmetricKey> PassphraseToKey(
+ const std::string& passphrase,
+ const std::string& salt);
// Encrypts (AES) the token given |key| and |salt|.
std::string EncryptTokenWithKey(crypto::SymmetricKey* key,
« no previous file with comments | « chrome/browser/chromeos/login/profile_auth_data_unittest.cc ('k') | chrome/browser/chromeos/settings/token_encryptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698