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

Unified Diff: content/renderer/render_process_impl.cc

Issue 23842002: Whitelisting exts and plugins from cross-site document blocking (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Exclude plugins from cross-site document data collection/blocking. Created 7 years, 3 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
Index: content/renderer/render_process_impl.cc
diff --git a/content/renderer/render_process_impl.cc b/content/renderer/render_process_impl.cc
index 23537011e640aa830dd574bb1d78caaab9818906..e73d305d27f3273b8447da28a4c88d1c5264537b 100644
--- a/content/renderer/render_process_impl.cc
+++ b/content/renderer/render_process_impl.cc
@@ -21,6 +21,7 @@
#include "content/child/child_thread.h"
#include "content/child/npapi/plugin_instance.h"
#include "content/child/npapi/plugin_lib.h"
+#include "content/child/site_isolation_policy.h"
#include "content/common/view_messages.h"
#include "content/public/common/content_switches.h"
#include "content/public/renderer/content_renderer_client.h"
@@ -72,6 +73,11 @@ RenderProcessImpl::RenderProcessImpl()
webkit_glue::SetJavaScriptFlags(
command_line.GetSwitchValueASCII(switches::kJavaScriptFlags));
}
+
+ // Turn on the cross-site document blocking.
Charlie Reis 2013/09/03 20:22:10 nit: drop "the", add "for renderer processes."
dsjang 2013/09/03 22:31:30 Done.
+ DCHECK(GetContentClient()->renderer());
Charlie Reis 2013/09/03 20:22:10 No need for this DCHECK. It's no different than c
dsjang 2013/09/03 22:31:30 Done.
+ SiteIsolationPolicy::SetPolicyEnabled(
+ GetContentClient()->renderer()->ShouldEnableSiteIsolationPolicy());
}
RenderProcessImpl::~RenderProcessImpl() {

Powered by Google App Engine
This is Rietveld 408576698