Make sure standard schemes are also set in child process

This commit is contained in:
Cheng Zhao 2016-06-08 15:46:50 +09:00
parent 1146b2d5c1
commit 920ebee333
5 changed files with 33 additions and 0 deletions

View file

@ -169,6 +169,14 @@ void AtomBrowserClient::AppendExtraCommandLineSwitches(
if (process_type != "renderer")
return;
// Copy following switches to child process.
static const char* const kCommonSwitchNames[] = {
switches::kStandardSchemes,
};
command_line->CopySwitchesFrom(
*base::CommandLine::ForCurrentProcess(),
kCommonSwitchNames, arraysize(kCommonSwitchNames));
// The registered service worker schemes.
if (!g_custom_service_worker_schemes.empty())
command_line->AppendSwitchASCII(switches::kRegisterServiceWorkerSchemes,