diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-01 18:16:56 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-01 18:16:56 +0000 |
commit | bfd04a62ce610d7bb61dbb78811dccbed23589b7 (patch) | |
tree | 70bb228c0f00ba1c12c584efd569daccf96b4026 /chrome/common/pref_member.cc | |
parent | a814d863440f0a154a7299f2d8b440f405c7700e (diff) | |
download | chromium_src-bfd04a62ce610d7bb61dbb78811dccbed23589b7.zip chromium_src-bfd04a62ce610d7bb61dbb78811dccbed23589b7.tar.gz chromium_src-bfd04a62ce610d7bb61dbb78811dccbed23589b7.tar.bz2 |
Remove most header file dependencies on the notification type list. It is
really painful to add more types, since lots of headers include the
notification service to derive from the notification observer. This splits that
out, so much less of the project should end up including notification_types.h
---Paths modified but not in any changelist:
Review URL: http://codereview.chromium.org/19744
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9020 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/pref_member.cc')
-rw-r--r-- | chrome/common/pref_member.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/common/pref_member.cc b/chrome/common/pref_member.cc index 9843b7e..8734775 100644 --- a/chrome/common/pref_member.cc +++ b/chrome/common/pref_member.cc @@ -5,6 +5,7 @@ #include "chrome/common/pref_member.h" #include "base/logging.h" +#include "chrome/common/notification_type.h" #include "chrome/common/pref_service.h" namespace subtle { @@ -23,7 +24,7 @@ PrefMemberBase::~PrefMemberBase() { void PrefMemberBase::Init(const wchar_t* pref_name, PrefService* prefs, - NotificationObserver* observer) { + NotificationObserver* observer) { DCHECK(pref_name); DCHECK(prefs); DCHECK(pref_name_.empty()); // Check that Init is only called once. @@ -40,7 +41,7 @@ void PrefMemberBase::Observe(NotificationType type, const NotificationSource& source, const NotificationDetails& details) { DCHECK(!pref_name_.empty()); - DCHECK(NOTIFY_PREF_CHANGED == type); + DCHECK(NotificationType::PREF_CHANGED == type); UpdateValueFromPref(); is_synced_ = true; if (!setting_value_ && observer_) |