aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-embed-single.c
diff options
context:
space:
mode:
authorXan Lopez <xan@gnome.org>2009-08-13 02:43:40 +0800
committerXan Lopez <xan@gnome.org>2009-08-13 02:45:32 +0800
commit876f79f685c761100191328dd5ea7ee2bf50163f (patch)
tree14bb14740fb9912bd8462a7799c256673155ad85 /embed/ephy-embed-single.c
parente81b7c32d7b56b4bee0a3a8ea678ba919e58e240 (diff)
downloadgsoc2013-epiphany-876f79f685c761100191328dd5ea7ee2bf50163f.tar
gsoc2013-epiphany-876f79f685c761100191328dd5ea7ee2bf50163f.tar.gz
gsoc2013-epiphany-876f79f685c761100191328dd5ea7ee2bf50163f.tar.bz2
gsoc2013-epiphany-876f79f685c761100191328dd5ea7ee2bf50163f.tar.lz
gsoc2013-epiphany-876f79f685c761100191328dd5ea7ee2bf50163f.tar.xz
gsoc2013-epiphany-876f79f685c761100191328dd5ea7ee2bf50163f.tar.zst
gsoc2013-epiphany-876f79f685c761100191328dd5ea7ee2bf50163f.zip
ephy-embed-single.c: use new keyring support in libsoup to store passwords
We depend on WebKitGTK+ trunk (r47129) and libsoup master (f81520bfd3a97) now.
Diffstat (limited to 'embed/ephy-embed-single.c')
-rw-r--r--embed/ephy-embed-single.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/embed/ephy-embed-single.c b/embed/ephy-embed-single.c
index a5376a8b0..8ae2ad3df 100644
--- a/embed/ephy-embed-single.c
+++ b/embed/ephy-embed-single.c
@@ -346,6 +346,13 @@ ephy_embed_single_initialize (EphyEmbedSingle *single)
/* Use GNOME proxy settings through libproxy */
soup_session_add_feature_by_type (session, SOUP_TYPE_PROXY_RESOLVER_GNOME);
+ /* Use GNOME keyring to store passwords. Only add the manager if we
+ are not using a private session, otherwise we want any new
+ password to expire when we exit *and* we don't want to use any
+ existing password in the keyring */
+ if (ephy_has_private_profile () == FALSE)
+ soup_session_add_feature_by_type (session, SOUP_TYPE_PASSWORD_MANAGER_GNOME);
+
return TRUE;
}