aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorXan Lopez <xlopez@igalia.com>2011-06-30 02:03:40 +0800
committerXan Lopez <xlopez@igalia.com>2011-06-30 02:03:40 +0800
commit5b3154f5ddb95f162389340b178d6fc51b3a3bd7 (patch)
tree3a8864b23bc42022667951be1aae6374bd0a4419 /embed
parent4c444c0f7693b9a0f3058729bea04832b66d6214 (diff)
downloadgsoc2013-epiphany-5b3154f5ddb95f162389340b178d6fc51b3a3bd7.tar
gsoc2013-epiphany-5b3154f5ddb95f162389340b178d6fc51b3a3bd7.tar.gz
gsoc2013-epiphany-5b3154f5ddb95f162389340b178d6fc51b3a3bd7.tar.bz2
gsoc2013-epiphany-5b3154f5ddb95f162389340b178d6fc51b3a3bd7.tar.lz
gsoc2013-epiphany-5b3154f5ddb95f162389340b178d6fc51b3a3bd7.tar.xz
gsoc2013-epiphany-5b3154f5ddb95f162389340b178d6fc51b3a3bd7.tar.zst
gsoc2013-epiphany-5b3154f5ddb95f162389340b178d6fc51b3a3bd7.zip
Always use the EphyEmbedShell to know if we are a private instance
We can now get rid of the EphyFileHelpers method.
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-embed-single.c2
-rw-r--r--embed/ephy-web-view.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/embed/ephy-embed-single.c b/embed/ephy-embed-single.c
index b9787fd09..a41d0b25e 100644
--- a/embed/ephy-embed-single.c
+++ b/embed/ephy-embed-single.c
@@ -528,7 +528,7 @@ ephy_embed_single_initialize (EphyEmbedSingle *single)
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)
+ if (ephy_embed_shell_is_private_instance (ephy_embed_shell_get_default ()) == FALSE)
soup_session_add_feature_by_type (session, SOUP_TYPE_PASSWORD_MANAGER_GNOME);
#endif
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 015a3236a..719db1024 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -1873,7 +1873,7 @@ load_status_cb (WebKitWebView *web_view,
if (ephy_web_view_get_is_blank (view))
g_object_notify (object, "embed-title");
- if (ephy_has_private_profile () == FALSE &&
+ if (ephy_embed_shell_is_private_instance (embed_shell) == FALSE &&
g_settings_get_boolean (EPHY_SETTINGS_MAIN,
EPHY_PREFS_REMEMBER_PASSWORDS))
_ephy_web_view_hook_into_forms (view);