From 6367ad45d40261775449168b27855aaed796be34 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sun, 27 May 2007 12:18:28 +0000 Subject: nsIPasswordManager doesn't exist on trunk anymore. 2007-05-27 Christian Persch * embed/mozilla/mozilla-embed-single.cpp: nsIPasswordManager doesn't exist on trunk anymore. svn path=/trunk/; revision=7053 --- embed/mozilla/mozilla-embed-single.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'embed/mozilla/mozilla-embed-single.cpp') diff --git a/embed/mozilla/mozilla-embed-single.cpp b/embed/mozilla/mozilla-embed-single.cpp index 3c236655f..9bc622688 100644 --- a/embed/mozilla/mozilla-embed-single.cpp +++ b/embed/mozilla/mozilla-embed-single.cpp @@ -44,8 +44,6 @@ #include #include #include -#include -#include #include #include #include @@ -69,6 +67,11 @@ #include #endif /* ALLOW_PRIVATE_API */ +#ifndef HAVE_GECKO_1_9 +#include +#include +#endif /* !HAVE_GECKO_1_9 */ + #include "ephy-file-helpers.h" #include "eel-gconf-extensions.h" #include "ephy-certificate-manager.h" @@ -930,6 +933,7 @@ impl_list_passwords (EphyPasswordManager *manager) { GList *passwords = NULL; +#ifndef HAVE_GECKO_1_9 nsresult rv; nsCOMPtr passwordManager = do_GetService (NS_PASSWORDMANAGER_CONTRACTID); @@ -982,6 +986,7 @@ impl_list_passwords (EphyPasswordManager *manager) passwords = g_list_prepend (passwords, p); } +#endif /* !HAVE_GECKO_1_9 */ return passwords; } @@ -990,6 +995,7 @@ static void impl_remove_password (EphyPasswordManager *manager, EphyPasswordInfo *info) { +#ifndef HAVE_GECKO_1_9 nsCOMPtr pm = do_GetService (NS_PASSWORDMANAGER_CONTRACTID); if (!pm) return; @@ -1007,13 +1013,15 @@ impl_remove_password (EphyPasswordManager *manager, NS_CStringToUTF16 (nsCString(info->username), NS_CSTRING_ENCODING_UTF8, userName); pm->RemoveUser (host, userName); +#endif /* !HAVE_GECKO_1_9 */ } static void impl_add_password (EphyPasswordManager *manager, EphyPasswordInfo *info) { - nsCOMPtr pm = +#ifndef HAVE_GECKO_1_9 + nsCOMPtr pm = do_GetService (NS_PASSWORDMANAGER_CONTRACTID); if (!pm) return; @@ -1035,6 +1043,7 @@ impl_add_password (EphyPasswordManager *manager, NS_CSTRING_ENCODING_UTF8, password); pm->AddUser(host, username, password); +#endif /* !HAVE_GECKO_1_9 */ } static void -- cgit