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

Unified Diff: components/signin/core/webdata/token_service_table.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: components/signin/core/webdata/token_service_table.cc
diff --git a/components/signin/core/webdata/token_service_table.cc b/components/signin/core/webdata/token_service_table.cc
index bce7fe244f434188bfb3704e622d8574c16baaea..a455bc75db4c3cc476011e199eb26dd84252f622 100644
--- a/components/signin/core/webdata/token_service_table.cc
+++ b/components/signin/core/webdata/token_service_table.cc
@@ -8,7 +8,7 @@
#include <string>
#include "base/logging.h"
-#include "components/encryptor/encryptor.h"
+#include "components/encryptor/os_crypt.h"
#include "components/webdata/common/web_database.h"
#include "sql/statement.h"
@@ -72,7 +72,7 @@ bool TokenServiceTable::RemoveTokenForService(const std::string& service) {
bool TokenServiceTable::SetTokenForService(const std::string& service,
const std::string& token) {
std::string encrypted_token;
- bool encrypted = Encryptor::EncryptString(token, &encrypted_token);
+ bool encrypted = OSCrypt::EncryptString(token, &encrypted_token);
if (!encrypted) {
return false;
}
@@ -105,7 +105,7 @@ bool TokenServiceTable::GetAllTokens(
bool entry_ok = !service.empty() &&
s.ColumnBlobAsString(1, &encrypted_token);
if (entry_ok) {
- Encryptor::DecryptString(encrypted_token, &decrypted_token);
+ OSCrypt::DecryptString(encrypted_token, &decrypted_token);
(*tokens)[service] = decrypted_token;
} else {
NOTREACHED();
« no previous file with comments | « components/password_manager/core/browser/login_database_win.cc ('k') | components/sync_driver/system_encryptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698