diff options
author | mnissler@chromium.org <mnissler@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-04 07:58:59 +0000 |
---|---|---|
committer | mnissler@chromium.org <mnissler@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-04 07:58:59 +0000 |
commit | 098c743d39e22651d2358ea7829a2fc2e3cd92cc (patch) | |
tree | 269d5da30b9d79a281e0cb0583530bfddf81ed0d /chrome/browser/host_content_settings_map.cc | |
parent | 39a6e6f74ed780dd1dd07fffcd7c5270a1ff462f (diff) | |
download | chromium_src-098c743d39e22651d2358ea7829a2fc2e3cd92cc.zip chromium_src-098c743d39e22651d2358ea7829a2fc2e3cd92cc.tar.gz chromium_src-098c743d39e22651d2358ea7829a2fc2e3cd92cc.tar.bz2 |
Make PROFILE_DESTROYED notifications work with OTR profiles.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/1848003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46335 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/host_content_settings_map.cc')
-rw-r--r-- | chrome/browser/host_content_settings_map.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/host_content_settings_map.cc b/chrome/browser/host_content_settings_map.cc index 40c117e..3094477 100644 --- a/chrome/browser/host_content_settings_map.cc +++ b/chrome/browser/host_content_settings_map.cc @@ -11,6 +11,7 @@ #include "chrome/browser/profile.h" #include "chrome/browser/scoped_pref_update.h" #include "chrome/common/notification_service.h" +#include "chrome/common/notification_source.h" #include "chrome/common/notification_type.h" #include "chrome/common/pref_names.h" #include "chrome/common/url_constants.h" @@ -193,7 +194,7 @@ HostContentSettingsMap::HostContentSettingsMap(Profile* profile) prefs->AddPrefObserver(prefs::kBlockThirdPartyCookies, this); } notification_registrar_.Add(this, NotificationType::PROFILE_DESTROYED, - NotificationService::AllSources()); + Source<Profile>(profile_)); } // static @@ -613,6 +614,6 @@ void HostContentSettingsMap::UnregisterObservers() { prefs->RemovePrefObserver(prefs::kBlockThirdPartyCookies, this); } notification_registrar_.Remove(this, NotificationType::PROFILE_DESTROYED, - NotificationService::AllSources()); + Source<Profile>(profile_)); profile_ = NULL; } |