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

Unified Diff: components/password_manager/core/browser/login_database_posix.cc

Issue 906973007: PasswordStore: Clean up expectations about rewriting vectors of forms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/password_manager/core/browser/login_database_posix.cc
diff --git a/components/password_manager/core/browser/login_database_posix.cc b/components/password_manager/core/browser/login_database_posix.cc
index a0426120a34406a8ed115922681f52cc5954867c..a700d9c0dd7013ed623bf721a1d745b9abf44968 100644
--- a/components/password_manager/core/browser/login_database_posix.cc
+++ b/components/password_manager/core/browser/login_database_posix.cc
@@ -10,16 +10,18 @@ namespace password_manager {
// TODO: Actually encrypt passwords on Linux.
+// static
LoginDatabase::EncryptionResult LoginDatabase::EncryptedString(
const base::string16& plain_text,
- std::string* cipher_text) const {
+ std::string* cipher_text) {
*cipher_text = base::UTF16ToUTF8(plain_text);
return ENCRYPTION_RESULT_SUCCESS;
}
+// static
LoginDatabase::EncryptionResult LoginDatabase::DecryptedString(
const std::string& cipher_text,
- base::string16* plain_text) const {
+ base::string16* plain_text) {
*plain_text = base::UTF8ToUTF16(cipher_text);
return ENCRYPTION_RESULT_SUCCESS;
}

Powered by Google App Engine
This is Rietveld 408576698