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

Unified Diff: content/browser/browser_main_loop.cc

Issue 2831683002: Introduce support for origins that require process isolation. (Closed)
Patch Set: Charlie's comments (round 3) 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 74b3229efd65f3d067a917ea2a2c17b7bcdfd5a8..f7b8fc8763f3e6801a853b1124f29fe246cce2c4 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -53,6 +53,7 @@
#include "components/tracing/common/tracing_switches.h"
#include "components/viz/display_compositor/host_shared_bitmap_manager.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"
@@ -798,6 +799,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));
+ }
+
// Enable memory-infra dump providers.
InitSkiaEventTracer();
tracing::ProcessMetricsMemoryDumpProvider::RegisterForProcess(
« no previous file with comments | « chrome/browser/ui/extensions/hosted_app_browsertest.cc ('k') | content/browser/child_process_security_policy_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698