Index: chrome/renderer/chrome_content_renderer_client.cc |
diff --git a/chrome/renderer/chrome_content_renderer_client.cc b/chrome/renderer/chrome_content_renderer_client.cc |
index ef9c3fc04d9a306ee5b4af59a4784042814afd79..7f4bfe242cfb23406a98e1f18063aad9f4542d68 100644 |
--- a/chrome/renderer/chrome_content_renderer_client.cc |
+++ b/chrome/renderer/chrome_content_renderer_client.cc |
@@ -1305,4 +1305,14 @@ bool ChromeContentRendererClient::ShouldReportDetailedMessageForSource( |
return extensions::IsSourceFromAnExtension(source); |
} |
+bool ChromeContentRendererClient::ShouldEnableSiteIsolationPolicy() const { |
+ // SiteIsolationPolicy is off by default. We would like to activate cross-site |
+ // document blocking (for UMA data collection) for normal renderer processes |
+ // running a normal web page from the Internet. We only turn on |
+ // SiteIsolationPolicy for a renderer process that does not have the extension |
+ // flag on. |
+ CommandLine* command_line = CommandLine::ForCurrentProcess(); |
+ return !command_line->HasSwitch(switches::kExtensionProcess); |
+} |
+ |
} // namespace chrome |