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

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') | no next file » | 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 90949)
+++ content/browser/renderer_host/render_message_filter.cc (working copy)
@@ -125,7 +125,7 @@
}
virtual bool OffTheRecord() {
- return filter()->incognito();
+ return filter()->OffTheRecord();
}
virtual void SetPluginInfo(const webkit::npapi::WebPluginInfo& info) {
@@ -378,6 +378,12 @@
BrowserThread::DeleteOnIOThread::Destruct(this);
}
+bool RenderMessageFilter::OffTheRecord() const {
+ return incognito_ ||
+ !content::GetContentClient()->browser()->AllowSaveLocalState(
+ resource_context_);
+}
+
void RenderMessageFilter::OnMsgCreateWindow(
const ViewHostMsg_CreateWindow_Params& params,
int* route_id, int64* cloned_session_storage_namespace_id) {
« no previous file with comments | « content/browser/renderer_host/render_message_filter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698