aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/mozilla-embed-single.cpp
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-11-22 19:30:14 +0800
committerChristian Persch <chpe@src.gnome.org>2003-11-22 19:30:14 +0800
commitd961598c3761da5a673acef2d2f7abd33586f1c1 (patch)
treec659c8ed48ef5d20833e3501cfb0caf887ee99cc /embed/mozilla/mozilla-embed-single.cpp
parentf3b38d02402c995dcf61a11ff20e6d94c6c3c410 (diff)
downloadgsoc2013-epiphany-d961598c3761da5a673acef2d2f7abd33586f1c1.tar
gsoc2013-epiphany-d961598c3761da5a673acef2d2f7abd33586f1c1.tar.gz
gsoc2013-epiphany-d961598c3761da5a673acef2d2f7abd33586f1c1.tar.bz2
gsoc2013-epiphany-d961598c3761da5a673acef2d2f7abd33586f1c1.tar.lz
gsoc2013-epiphany-d961598c3761da5a673acef2d2f7abd33586f1c1.tar.xz
gsoc2013-epiphany-d961598c3761da5a673acef2d2f7abd33586f1c1.tar.zst
gsoc2013-epiphany-d961598c3761da5a673acef2d2f7abd33586f1c1.zip
Fix cookie deletion; use do_GetService instead of do_CreateInstance.
2003-11-22 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/mozilla-embed-single.cpp: Fix cookie deletion; use do_GetService instead of do_CreateInstance.
Diffstat (limited to 'embed/mozilla/mozilla-embed-single.cpp')
-rw-r--r--embed/mozilla/mozilla-embed-single.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/embed/mozilla/mozilla-embed-single.cpp b/embed/mozilla/mozilla-embed-single.cpp
index 4277dfc0a..a3a88c465 100644
--- a/embed/mozilla/mozilla-embed-single.cpp
+++ b/embed/mozilla/mozilla-embed-single.cpp
@@ -646,7 +646,7 @@ impl_list_cookies (EphyCookieManager *manager)
GList *cookies = NULL;
nsCOMPtr<nsICookieManager> cookieManager =
- do_CreateInstance (NS_COOKIEMANAGER_CONTRACTID);
+ do_GetService (NS_COOKIEMANAGER_CONTRACTID);
nsCOMPtr<nsISimpleEnumerator> cookieEnumerator;
result = cookieManager->GetEnumerator (getter_AddRefs(cookieEnumerator));
if (NS_FAILED(result) || !cookieEnumerator) return NULL;
@@ -679,9 +679,9 @@ impl_remove_cookie (EphyCookieManager *manager,
{
nsresult rv;
nsCOMPtr<nsICookieManager> cookieManager =
- do_CreateInstance (NS_COOKIEMANAGER_CONTRACTID, &rv);
+ do_GetService (NS_COOKIEMANAGER_CONTRACTID, &rv);
if (NS_FAILED (rv) || !cookieManager) return;
-
+g_print ("here!\n");
cookieManager->Remove (nsDependentCString(cookie->domain),
nsDependentCString(cookie->name),
nsDependentCString(cookie->path),
@@ -693,7 +693,7 @@ impl_clear_cookies (EphyCookieManager *manager)
{
nsresult rv;
nsCOMPtr<nsICookieManager> cookieManager =
- do_CreateInstance (NS_COOKIEMANAGER_CONTRACTID, &rv);
+ do_GetService (NS_COOKIEMANAGER_CONTRACTID, &rv);
if (NS_SUCCEEDED (rv))
{
cookieManager->RemoveAll ();
@@ -707,7 +707,7 @@ impl_list_passwords (EphyPasswordManager *manager)
nsresult result;
nsCOMPtr<nsIPasswordManager> passwordManager =
- do_CreateInstance (NS_PASSWORDMANAGER_CONTRACTID);
+ do_GetService (NS_PASSWORDMANAGER_CONTRACTID);
if (!passwordManager) return NULL;
nsCOMPtr<nsISimpleEnumerator> passwordEnumerator;
@@ -748,7 +748,7 @@ impl_remove_password (EphyPasswordManager *manager,
EphyPasswordInfo *info)
{
nsCOMPtr<nsIPasswordManager> pm =
- do_CreateInstance (NS_PASSWORDMANAGER_CONTRACTID);
+ do_GetService (NS_PASSWORDMANAGER_CONTRACTID);
if (pm)
{
pm->RemoveUser (nsDependentCString(info->host),
@@ -771,7 +771,7 @@ impl_permission_manager_add (EphyPermissionManager *manager,
{
nsresult result;
nsCOMPtr<nsIPermissionManager> pm
- (do_CreateInstance (NS_PERMISSIONMANAGER_CONTRACTID, &result));
+ (do_GetService (NS_PERMISSIONMANAGER_CONTRACTID, &result));
if (NS_FAILED (result) || !pm) return;
nsCOMPtr<nsIURI> uri;
@@ -795,7 +795,7 @@ impl_permission_manager_remove (EphyPermissionManager *manager,
{
nsresult result;
nsCOMPtr<nsIPermissionManager> pm
- (do_CreateInstance (NS_PERMISSIONMANAGER_CONTRACTID, &result));
+ (do_GetService (NS_PERMISSIONMANAGER_CONTRACTID, &result));
if (NS_SUCCEEDED (result))
{
#if MOZILLA_SNAPSHOT >= 10
@@ -811,7 +811,7 @@ impl_permission_manager_clear (EphyPermissionManager *manager)
{
nsresult result;
nsCOMPtr<nsIPermissionManager> pm
- (do_CreateInstance (NS_PERMISSIONMANAGER_CONTRACTID, &result));
+ (do_GetService (NS_PERMISSIONMANAGER_CONTRACTID, &result));
if (NS_SUCCEEDED (result))
{
pm->RemoveAll ();
@@ -825,7 +825,7 @@ impl_permission_manager_test (EphyPermissionManager *manager,
{
nsresult result;
nsCOMPtr<nsIPermissionManager> pm
- (do_CreateInstance (NS_PERMISSIONMANAGER_CONTRACTID, &result));
+ (do_GetService (NS_PERMISSIONMANAGER_CONTRACTID, &result));
if (NS_FAILED (result) || !pm) return FALSE;
nsCOMPtr<nsIURI> uri;
@@ -864,7 +864,7 @@ impl_permission_manager_list (EphyPermissionManager *manager,
nsresult result;
nsCOMPtr<nsIPermissionManager> pm
- (do_CreateInstance (NS_PERMISSIONMANAGER_CONTRACTID, &result));
+ (do_GetService (NS_PERMISSIONMANAGER_CONTRACTID, &result));
if (NS_FAILED (result) || !pm) return NULL;
nsCOMPtr<nsISimpleEnumerator> pe;