Bug 615745 - Make CookieServiceChild add strong pref observers. r=dwitte a=blocking-fennec

This commit is contained in:
Josh Matthews 2010-11-30 21:47:08 -05:00
parent 1926e406ed
commit e6d29d8ef8
2 changed files with 6 additions and 1 deletions

View File

@ -67,7 +67,10 @@ CookieServiceChild::GetSingleton()
return gCookieService;
}
NS_IMPL_ISUPPORTS2(CookieServiceChild, nsICookieService, nsIObserver)
NS_IMPL_ISUPPORTS3(CookieServiceChild,
nsICookieService,
nsIObserver,
nsISupportsWeakReference)
CookieServiceChild::CookieServiceChild()
: mCookieBehavior(BEHAVIOR_ACCEPT)

View File

@ -44,6 +44,7 @@
#include "nsIObserver.h"
#include "nsIPrefBranch.h"
#include "mozIThirdPartyUtil.h"
#include "nsWeakReference.h"
namespace mozilla {
namespace net {
@ -51,6 +52,7 @@ namespace net {
class CookieServiceChild : public PCookieServiceChild
, public nsICookieService
, public nsIObserver
, public nsSupportsWeakReference
{
public:
NS_DECL_ISUPPORTS