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

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

Issue 11345008: Remove content::NotificationObserver dependency from most Prefs code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head for commit Created 8 years, 1 month 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 f7b7fc9e42c93cd650bcd74c30f9c44be2f09311..4a1436ede4533a2406f868312f4da1ce37855694 100644
--- a/chrome/browser/ui/webui/options/password_manager_handler.h
+++ b/chrome/browser/ui/webui/options/password_manager_handler.h
@@ -9,6 +9,7 @@
#include <vector>
#include "base/memory/scoped_vector.h"
+#include "base/prefs/public/pref_observer.h"
#include "chrome/browser/api/prefs/pref_member.h"
#include "chrome/browser/password_manager/password_store.h"
#include "chrome/browser/password_manager/password_store_consumer.h"
@@ -21,7 +22,8 @@ struct PasswordForm;
namespace options {
class PasswordManagerHandler : public OptionsPageUIHandler,
- public PasswordStore::Observer {
+ public PasswordStore::Observer,
+ public PrefObserver {
public:
PasswordManagerHandler();
virtual ~PasswordManagerHandler();
@@ -34,10 +36,9 @@ class PasswordManagerHandler : public OptionsPageUIHandler,
// PasswordStore::Observer implementation.
virtual void OnLoginsChanged() OVERRIDE;
- // content::NotificationObserver implementation.
- virtual void Observe(int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) OVERRIDE;
+ // PrefObserver implementation.
+ virtual void OnPreferenceChanged(PrefServiceBase* service,
+ const std::string& pref_name) OVERRIDE;
private:
// The password store associated with the currently active profile.

Powered by Google App Engine
This is Rietveld 408576698