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

Unified Diff: chrome/browser/ui/webui/options/password_manager_handler.h

Issue 6770012: Handle the PasswordManagerAllowShowPasswords preference in the options webui. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 9 years, 8 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: chrome/browser/ui/webui/options/password_manager_handler.h
diff --git a/chrome/browser/ui/webui/options/password_manager_handler.h b/chrome/browser/ui/webui/options/password_manager_handler.h
index b316a757544655633ee584d8683da92ee3a19b5d..4903765cba535f96dbaf60b67dacb5ceb377681c 100644
--- a/chrome/browser/ui/webui/options/password_manager_handler.h
+++ b/chrome/browser/ui/webui/options/password_manager_handler.h
@@ -11,6 +11,7 @@
#include "base/memory/scoped_vector.h"
#include "chrome/browser/password_manager/password_store.h"
#include "chrome/browser/password_manager/password_store_consumer.h"
+#include "chrome/browser/prefs/pref_member.h"
#include "chrome/browser/ui/webui/options/options_ui.h"
class PasswordManagerHandler : public OptionsPageUIHandler,
@@ -27,6 +28,11 @@ class PasswordManagerHandler : public OptionsPageUIHandler,
// PasswordStore::Observer implementation.
virtual void OnLoginsChanged();
+ // NotificationObserver implementation.
+ virtual void Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details);
+
private:
// The password store associated with the currently active profile.
PasswordStore* GetPasswordStore();
@@ -114,6 +120,9 @@ class PasswordManagerHandler : public OptionsPageUIHandler,
// User's pref
std::string languages_;
+ // Whether to show stored passwords or not.
+ BooleanPrefMember show_passwords_;
+
DISALLOW_COPY_AND_ASSIGN(PasswordManagerHandler);
};
« no previous file with comments | « chrome/browser/resources/options/personal_options.html ('k') | chrome/browser/ui/webui/options/password_manager_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698