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

Unified Diff: components/autofill/core/browser/webdata/autofill_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/autofill/core/browser/webdata/autofill_table.cc
diff --git a/components/autofill/core/browser/webdata/autofill_table.cc b/components/autofill/core/browser/webdata/autofill_table.cc
index 23c5b0570d3f2aae5f1bfc2a544ce412e38244bd..1514bb365bd2980d0301bab4afb91d0ef6844578 100644
--- a/components/autofill/core/browser/webdata/autofill_table.cc
+++ b/components/autofill/core/browser/webdata/autofill_table.cc
@@ -28,7 +28,7 @@
#include "components/autofill/core/browser/webdata/autofill_change.h"
#include "components/autofill/core/browser/webdata/autofill_entry.h"
#include "components/autofill/core/common/form_field_data.h"
-#include "components/encryptor/encryptor.h"
+#include "components/encryptor/os_crypt.h"
#include "components/webdata/common/web_database.h"
#include "sql/statement.h"
#include "sql/transaction.h"
@@ -124,8 +124,8 @@ void BindCreditCardToStatement(const CreditCard& credit_card,
s->BindString16(index++, GetInfo(credit_card, CREDIT_CARD_EXP_4_DIGIT_YEAR));
std::string encrypted_data;
- Encryptor::EncryptString16(credit_card.GetRawInfo(CREDIT_CARD_NUMBER),
- &encrypted_data);
+ OSCrypt::EncryptString16(credit_card.GetRawInfo(CREDIT_CARD_NUMBER),
+ &encrypted_data);
s->BindBlob(index++, encrypted_data.data(),
static_cast<int>(encrypted_data.length()));
@@ -150,7 +150,7 @@ scoped_ptr<CreditCard> CreditCardFromStatement(const sql::Statement& s) {
std::string encrypted_number;
encrypted_number.resize(encrypted_number_len);
memcpy(&encrypted_number[0], s.ColumnBlob(index++), encrypted_number_len);
- Encryptor::DecryptString16(encrypted_number, &credit_card_number);
+ OSCrypt::DecryptString16(encrypted_number, &credit_card_number);
} else {
index++;
}

Powered by Google App Engine
This is Rietveld 408576698