finish implementation of {secure:true} opt on protocol.registerStandardScehesm, and add working test

This commit is contained in:
Paul Frazee 2016-11-14 10:20:04 -06:00 committed by Kevin Sawicki
parent 9d2e23413e
commit 99ea50649a
9 changed files with 46 additions and 14 deletions

View file

@ -64,7 +64,7 @@ void RegisterStandardSchemes(const std::vector<std::string>& schemes, mate::Argu
if (args->GetNext(&opts) && opts.Get("secure", &secure) && secure) {
// add switches to register as secure
base::CommandLine::ForCurrentProcess()->AppendSwitchASCII(
atom::switches::kRegisterSecureSchemes, base::JoinString(schemes, ","));
atom::switches::kSecureSchemes, base::JoinString(schemes, ","));
}
}