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

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

Issue 650423004: Moving Passwordmanager::RegisterLocalPref() to components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix comments Created 6 years, 2 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
« no previous file with comments | « chrome/browser/password_manager/password_manager_util_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/password_manager/core/browser/password_manager.cc
diff --git a/components/password_manager/core/browser/password_manager.cc b/components/password_manager/core/browser/password_manager.cc
index 82394596e1967870df333d2e30df3f35fc5c7e27..fec61d2cffe4a6aed2d5eb6d4e98c7b0f9d51cc6 100644
--- a/components/password_manager/core/browser/password_manager.cc
+++ b/components/password_manager/core/browser/password_manager.cc
@@ -22,6 +22,10 @@
#include "components/password_manager/core/common/password_manager_switches.h"
#include "components/pref_registry/pref_registry_syncable.h"
+#if defined(OS_WIN)
+#include "base/prefs/pref_registry_simple.h"
+#endif
+
using autofill::PasswordForm;
using autofill::PasswordFormMap;
@@ -105,6 +109,14 @@ void PasswordManager::RegisterProfilePrefs(
user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
}
+#if defined(OS_WIN)
+// static
+void PasswordManager::RegisterLocalPrefs(PrefRegistrySimple* registry) {
+ registry->RegisterInt64Pref(prefs::kOsPasswordLastChanged, 0);
+ registry->RegisterBooleanPref(prefs::kOsPasswordBlank, false);
+}
+#endif
+
PasswordManager::PasswordManager(PasswordManagerClient* client)
: client_(client), driver_(client->GetDriver()) {
DCHECK(client_);
« no previous file with comments | « chrome/browser/password_manager/password_manager_util_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698