fix: append network switches to network service process (#20546)
This commit is contained in:
parent
5bd7b6ad50
commit
5c2c30142c
1 changed files with 10 additions and 0 deletions
|
@ -580,6 +580,16 @@ void AtomBrowserClient::AdjustUtilityServiceProcessCommandLine(
|
||||||
if (identity.name() == audio::mojom::kServiceName)
|
if (identity.name() == audio::mojom::kServiceName)
|
||||||
command_line->AppendSwitch(::switches::kMessageLoopTypeUi);
|
command_line->AppendSwitch(::switches::kMessageLoopTypeUi);
|
||||||
#endif
|
#endif
|
||||||
|
if (identity.name() == content::mojom::kNetworkServiceName) {
|
||||||
|
// Copy following switches to network service process.
|
||||||
|
static const char* const kCommonSwitchNames[] = {
|
||||||
|
switches::kStandardSchemes, switches::kSecureSchemes,
|
||||||
|
switches::kBypassCSPSchemes, switches::kCORSSchemes,
|
||||||
|
switches::kFetchSchemes, switches::kServiceWorkerSchemes};
|
||||||
|
command_line->CopySwitchesFrom(*base::CommandLine::ForCurrentProcess(),
|
||||||
|
kCommonSwitchNames,
|
||||||
|
base::size(kCommonSwitchNames));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void AtomBrowserClient::DidCreatePpapiPlugin(content::BrowserPpapiHost* host) {
|
void AtomBrowserClient::DidCreatePpapiPlugin(content::BrowserPpapiHost* host) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue