[epiphany/gnome-3-12] ephy-embed-shell: make history read-only in incognito mode



commit 07801381269506136a50f9713f9491a1606b07ac
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Fri Oct 3 15:44:26 2014 +0300

    ephy-embed-shell: make history read-only in incognito mode
    
    Whatever is searched in a incognito session shouldn't go to the
    history, not even if this will be deleted afterwards.

 embed/ephy-embed-shell.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/embed/ephy-embed-shell.c b/embed/ephy-embed-shell.c
index ddaae74..b6d83aa 100644
--- a/embed/ephy-embed-shell.c
+++ b/embed/ephy-embed-shell.c
@@ -395,7 +395,8 @@ ephy_embed_shell_get_global_history_service (EphyEmbedShell *shell)
     char *filename;
 
     filename = g_build_filename (ephy_dot_dir (), EPHY_HISTORY_FILE, NULL);
-    shell->priv->global_history_service = ephy_history_service_new (filename, FALSE);
+    shell->priv->global_history_service = ephy_history_service_new (filename,
+                                                                    shell->priv->mode == 
EPHY_EMBED_SHELL_MODE_INCOGNITO);
     g_free (filename);
     g_return_val_if_fail (shell->priv->global_history_service, NULL);
     g_signal_connect (shell->priv->global_history_service, "urls-visited",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]