Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Unified Diff: content/browser/renderer_host/render_message_filter.cc

Issue 7230052: Make kClearSiteDataOnExit work correctly for Flash in multi-profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/renderer_host/render_message_filter.h ('k') | content/common/plugin_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « content/browser/renderer_host/render_message_filter.h ('k') | content/common/plugin_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698