aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/EphySingle.cpp
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2004-07-21 06:28:55 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2004-07-21 06:28:55 +0800
commit750efa7d51d97859f37e9e59065ba176d7520cce (patch)
treeef473016ddcad25326d02e14a88bab3b93a29958 /embed/mozilla/EphySingle.cpp
parent0e8132c237b8da5837ea2f8889507d91b0ead33c (diff)
downloadgsoc2013-epiphany-750efa7d51d97859f37e9e59065ba176d7520cce.tar
gsoc2013-epiphany-750efa7d51d97859f37e9e59065ba176d7520cce.tar.gz
gsoc2013-epiphany-750efa7d51d97859f37e9e59065ba176d7520cce.tar.bz2
gsoc2013-epiphany-750efa7d51d97859f37e9e59065ba176d7520cce.tar.lz
gsoc2013-epiphany-750efa7d51d97859f37e9e59065ba176d7520cce.tar.xz
gsoc2013-epiphany-750efa7d51d97859f37e9e59065ba176d7520cce.tar.zst
gsoc2013-epiphany-750efa7d51d97859f37e9e59065ba176d7520cce.zip
No need to use a weak ref for the observer, makes the single code easier.
2004-07-21 Marco Pesenti Gritti <marco@gnome.org> * embed/mozilla/EphySingle.cpp: * embed/mozilla/EphySingle.h: * embed/mozilla/mozilla-embed-single.cpp: No need to use a weak ref for the observer, makes the single code easier.
Diffstat (limited to 'embed/mozilla/EphySingle.cpp')
-rw-r--r--embed/mozilla/EphySingle.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/embed/mozilla/EphySingle.cpp b/embed/mozilla/EphySingle.cpp
index 3c8fb67b6..065b886cf 100644
--- a/embed/mozilla/EphySingle.cpp
+++ b/embed/mozilla/EphySingle.cpp
@@ -39,7 +39,7 @@
#include <nsIIDNService.h>
#endif
-NS_IMPL_ISUPPORTS2(EphySingle, nsIObserver, nsISupportsWeakReference)
+NS_IMPL_ISUPPORTS1(EphySingle, nsIObserver)
EphySingle::EphySingle()
: mOwner(nsnull)
@@ -54,10 +54,10 @@ EphySingle::Init (EphyEmbedSingle *aOwner)
NS_ENSURE_TRUE (mObserverService, NS_ERROR_FAILURE);
nsresult rv;
- rv = mObserverService->AddObserver (this, "cookie-changed", PR_TRUE);
- rv |= mObserverService->AddObserver (this, "cookie-rejected", PR_TRUE);
- rv |= mObserverService->AddObserver (this, "perm-changed", PR_TRUE);
- rv |= mObserverService->AddObserver (this, "network:offline-status-changed", PR_TRUE);
+ rv = mObserverService->AddObserver (this, "cookie-changed", PR_FALSE);
+ rv |= mObserverService->AddObserver (this, "cookie-rejected", PR_FALSE);
+ rv |= mObserverService->AddObserver (this, "perm-changed", PR_FALSE);
+ rv |= mObserverService->AddObserver (this, "network:offline-status-changed", PR_FALSE);
NS_ENSURE_SUCCESS (rv, NS_ERROR_FAILURE);
mOwner = aOwner;