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

Unified Diff: content/browser/browser_main_loop.cc

Issue 2831683002: Introduce support for origins that require process isolation. (Closed)
Patch Set: Rebase Created 3 years, 7 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/browser/browser_main_loop.cc
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
index 3b4128fccff1188906bae3c2f9a76a7af4fc0815..9c72f70a3a5ce285e7257990ada1f3840b1e0fcc 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -53,6 +53,7 @@
#include "components/tracing/common/trace_to_console.h"
#include "components/tracing/common/tracing_switches.h"
#include "content/browser/browser_thread_impl.h"
+#include "content/browser/child_process_security_policy_impl.h"
#include "content/browser/dom_storage/dom_storage_area.h"
#include "content/browser/download/download_resource_handler.h"
#include "content/browser/download/save_file_manager.h"
@@ -797,6 +798,13 @@ void BrowserMainLoop::PostMainMessageLoopStart() {
LevelDBWrapperImpl::EnableAggressiveCommitDelay();
}
+ if (parsed_command_line_.HasSwitch(switches::kIsolateOrigins)) {
+ ChildProcessSecurityPolicyImpl* policy =
+ ChildProcessSecurityPolicyImpl::GetInstance();
+ policy->AddIsolatedOriginsFromCommandLine(
+ parsed_command_line_.GetSwitchValueASCII(switches::kIsolateOrigins));
+ }
+
// Create the memory instrumentation service. It will initialize the memory
// dump manager, too. It makes sense that BrowserMainLoop owns the service;
// this way, the service is alive for the lifetime of Mojo. Mojo is shutdown

Powered by Google App Engine
This is Rietveld 408576698