[epiphany] ephy-embed-shell: make history read-only in incognito mode



commit de11d95eeb0f33951f9346ab8f6a5d2feef2b9fb
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 83bbb94..16a91e9 100644
--- a/embed/ephy-embed-shell.c
+++ b/embed/ephy-embed-shell.c
@@ -418,7 +418,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]