Index: components/password_manager/core/browser/login_database_win.cc |
diff --git a/components/password_manager/core/browser/login_database_win.cc b/components/password_manager/core/browser/login_database_win.cc |
index 44a1d564624a3c4a3d2e3241ff9cd6073b49779d..3479aefb8956d0023f74159820bd43625e82add1 100644 |
--- a/components/password_manager/core/browser/login_database_win.cc |
+++ b/components/password_manager/core/browser/login_database_win.cc |
@@ -2,14 +2,15 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "base/strings/string_util.h" |
-#include "components/encryptor/encryptor.h" |
#include "components/password_manager/core/browser/login_database.h" |
+#include "base/strings/string_util.h" |
+#include "components/encryptor/os_crypt.h" |
+ |
LoginDatabase::EncryptionResult LoginDatabase::EncryptedString( |
const base::string16& plain_text, |
std::string* cipher_text) const { |
- if (Encryptor::EncryptString16(plain_text, cipher_text)) |
+ if (OSCrypt::EncryptString16(plain_text, cipher_text)) |
return ENCRYPTION_RESULT_SUCCESS; |
return ENCRYPTION_RESULT_ITEM_FAILURE; |
} |
@@ -17,7 +18,7 @@ LoginDatabase::EncryptionResult LoginDatabase::EncryptedString( |
LoginDatabase::EncryptionResult LoginDatabase::DecryptedString( |
const std::string& cipher_text, |
base::string16* plain_text) const { |
- if (Encryptor::DecryptString16(cipher_text, plain_text)) |
+ if (OSCrypt::DecryptString16(cipher_text, plain_text)) |
return ENCRYPTION_RESULT_SUCCESS; |
return ENCRYPTION_RESULT_ITEM_FAILURE; |
} |