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

Unified Diff: chrome/renderer/chrome_content_renderer_client.cc

Issue 1208143002: Move existing kSitePerProcess checks to a policy-oracle object (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@swapped_out_cmdline_checks
Patch Set: Partial fixes to Nasko's comments. Created 5 years, 5 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: 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 f8779f4b223d93ee564b07599f45c2e96763e64f..7e6455c453a75ca6e987a23af1d8ba2b52f2ddbd 100644
--- a/chrome/renderer/chrome_content_renderer_client.cc
+++ b/chrome/renderer/chrome_content_renderer_client.cc
@@ -1400,6 +1400,8 @@ bool ChromeContentRendererClient::CrossesExtensionExtents(
// the type of process. In default Chrome, that's the URL of the opener's
// top frame and not the opener frame itself. In --site-per-process, we
// can use the opener frame itself.
+ // TODO(nick): Either wire this up to SiteIsolationPolicy, or to state on
+ // |opener_frame|/its ancestors.
Charlie Reis 2015/07/13 22:13:14 Yeah, this one's a bit awkward, since there's a ch
ncarter (slow) 2015/07/20 17:45:46 Acknowledged.
if (base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kSitePerProcess))
old_url = opener_frame->document().url();

Powered by Google App Engine
This is Rietveld 408576698