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

Unified Diff: components/password_manager/core/browser/login_database.h

Issue 1192493005: Encrypt password values in LoginDatabase on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win Created 5 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: components/password_manager/core/browser/login_database.h
diff --git a/components/password_manager/core/browser/login_database.h b/components/password_manager/core/browser/login_database.h
index ca3db84438e09ffb6d07e3d4ab36b2d109eaba92..f865580673cc4c930ffa72361c4ed386ee082a4f 100644
--- a/components/password_manager/core/browser/login_database.h
+++ b/components/password_manager/core/browser/login_database.h
@@ -111,6 +111,11 @@ class LoginDatabase {
StatisticsTable& stats_table() { return stats_table_; }
+ // If set to 'true', then the password values are cleared before encrypting
vabr (Chromium) 2015/06/18 13:39:09 This comment should go to the variable declaration
vasilii 2015/06/18 14:28:13 Done.
+ // and storing in the database. At the same time AddLogin/UpdateLogin return
+ // PasswordStoreChangeList containing the real password.
+ void set_clear_password_values(bool val) { clear_password_values_ = val; }
+
private:
// Result values for encryption/decryption actions.
enum EncryptionResult {
@@ -169,6 +174,7 @@ class LoginDatabase {
mutable sql::Connection db_;
sql::MetaTable meta_table_;
StatisticsTable stats_table_;
+ bool clear_password_values_;
vabr (Chromium) 2015/06/18 13:39:09 Also, is this just some temporary measure until we
vasilii 2015/06/18 14:28:13 Done.
DISALLOW_COPY_AND_ASSIGN(LoginDatabase);
};

Powered by Google App Engine
This is Rietveld 408576698