diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-05-06 21:29:20 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-05-06 21:29:20 +0800 |
commit | 48004a534a4d02c25962233b4e275530f4b8b15a (patch) | |
tree | 858050da3910103bd876025d55f32785b131ae4c /embed | |
parent | 7cb015d4ab2e9eea7c08f2a028df0dfcb9765a2d (diff) | |
download | gsoc2013-epiphany-48004a534a4d02c25962233b4e275530f4b8b15a.tar gsoc2013-epiphany-48004a534a4d02c25962233b4e275530f4b8b15a.tar.gz gsoc2013-epiphany-48004a534a4d02c25962233b4e275530f4b8b15a.tar.bz2 gsoc2013-epiphany-48004a534a4d02c25962233b4e275530f4b8b15a.tar.lz gsoc2013-epiphany-48004a534a4d02c25962233b4e275530f4b8b15a.tar.xz gsoc2013-epiphany-48004a534a4d02c25962233b4e275530f4b8b15a.tar.zst gsoc2013-epiphany-48004a534a4d02c25962233b4e275530f4b8b15a.zip |
Check for nsIPassword.h
2004-05-06 Christian Persch <chpe@cvs.gnome.org>
* configure.in:
Check for nsIPassword.h
* embed/mozilla/mozilla-embed-single.cpp:
Allow compilation without nsIPassword (mozilla wallet extension).
Diffstat (limited to 'embed')
-rw-r--r-- | embed/mozilla/mozilla-embed-single.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/embed/mozilla/mozilla-embed-single.cpp b/embed/mozilla/mozilla-embed-single.cpp index 693c39bec..939ebd2bb 100644 --- a/embed/mozilla/mozilla-embed-single.cpp +++ b/embed/mozilla/mozilla-embed-single.cpp @@ -50,17 +50,19 @@ #include <nsIIOService.h> #include <nsISupportsPrimitives.h> #include <nsICookieManager.h> -#include <nsIPassword.h> -#include <nsIPasswordManager.h> -#include <nsIPassword.h> #include <nsICookie2.h> #include <nsICookieManager.h> +#include <nsIPasswordManager.h> #include <nsCPasswordManager.h> #include <nsIPermission.h> #include <nsIPermissionManager.h> #include <nsILocalFile.h> #include <nsIURI.h> +#ifdef HAVE_NSIPASSWORD_H +#include <nsIPassword.h> +#endif + #ifdef ALLOW_PRIVATE_API // FIXME: For setting the locale. hopefully gtkmozembed will do itself soon #include <nsIChromeRegistry.h> @@ -432,8 +434,8 @@ init_services (MozillaEmbedSingle *single) /* Pre initialization */ mozilla_init_home (); mozilla_init_profile (); - - /* Fire up the best */ + + /* Fire up the beast */ gtk_moz_embed_push_startup (); /* Until gtkmozembed does this itself */ @@ -649,6 +651,8 @@ static GList * impl_list_passwords (EphyPasswordManager *manager) { GList *passwords = NULL; + +#ifdef HAVE_NSIPASSWORD_H nsresult rv; nsCOMPtr<nsIPasswordManager> passwordManager = @@ -684,6 +688,7 @@ impl_list_passwords (EphyPasswordManager *manager) passwords = g_list_prepend (passwords, p); } +#endif return passwords; } |