Index: content/browser/renderer_host/render_message_filter.cc |
=================================================================== |
--- content/browser/renderer_host/render_message_filter.cc (revision 90755) |
+++ content/browser/renderer_host/render_message_filter.cc (working copy) |
@@ -14,8 +14,10 @@ |
#include "base/utf_string_conversions.h" |
#include "chrome/browser/download/download_types.h" |
#include "chrome/browser/download/download_util.h" |
+#include "chrome/browser/prefs/pref_service.h" |
Jói
2011/06/29 03:37:32
Please don't add a content->pref_service dependenc
Miranda Callahan
2011/06/29 19:55:31
Ok -- thanks for the suggestion, it seems to work
|
#include "chrome/browser/profiles/profile.h" |
#include "chrome/common/extensions/extension.h" |
+#include "chrome/common/pref_names.h" |
#include "content/browser/browser_thread.h" |
#include "content/browser/child_process_security_policy.h" |
#include "content/browser/content_browser_client.h" |
@@ -124,6 +126,10 @@ |
return filter()->render_process_id(); |
} |
+ virtual bool SaveLocalState() { |
+ return filter()->save_local_state(); |
+ } |
+ |
virtual bool OffTheRecord() { |
return filter()->incognito(); |
} |
@@ -280,6 +286,8 @@ |
resource_context_(profile->GetResourceContext()), |
extensions_request_context_(profile->GetRequestContextForExtensions()), |
render_widget_helper_(render_widget_helper), |
+ save_local_state_(profile->GetPrefs()->GetBoolean( |
+ prefs::kClearSiteDataOnExit)), |
incognito_(profile->IsOffTheRecord()), |
webkit_context_(profile->GetWebKitContext()), |
render_process_id_(render_process_id) { |