Only append --register-standard-schemes when needed
This commit is contained in:
parent
befdfceada
commit
a1cbd11b5b
1 changed files with 3 additions and 3 deletions
|
@ -183,10 +183,10 @@ void AtomBrowserClient::AppendExtraCommandLineSwitches(
|
|||
base::CommandLine* command_line,
|
||||
int process_id) {
|
||||
std::string process_type = command_line->GetSwitchValueASCII("type");
|
||||
|
||||
if (process_type != "renderer")
|
||||
return;
|
||||
|
||||
if (!g_custom_schemes.empty())
|
||||
command_line->AppendSwitchASCII(switches::kRegisterStandardSchemes,
|
||||
g_custom_schemes);
|
||||
|
||||
|
|
Loading…
Reference in a new issue