[GURL] (1 of 2) Prep for stripping "username:password" from internal schemes

https://chromium-review.googlesource.com/c/chromium/src/+/978450
This commit is contained in:
Samuel Attard 2018-07-22 01:40:06 +10:00 committed by Aleksei Kuzmin
parent aa6d769229
commit 8a6fccf3d1
2 changed files with 2 additions and 2 deletions

View file

@ -50,7 +50,7 @@ void RegisterStandardSchemes(const std::vector<std::string>& schemes,
// Dynamically register the schemes.
auto* policy = content::ChildProcessSecurityPolicy::GetInstance();
for (const std::string& scheme : schemes) {
url::AddStandardScheme(scheme.c_str(), url::SCHEME_WITHOUT_PORT);
url::AddStandardScheme(scheme.c_str(), url::SCHEME_WITH_HOST);
if (secure) {
url::AddSecureScheme(scheme.c_str());
}

View file

@ -78,7 +78,7 @@ RendererClientBase::RendererClientBase() {
std::vector<std::string> standard_schemes_list =
ParseSchemesCLISwitch(command_line, switches::kStandardSchemes);
for (const std::string& scheme : standard_schemes_list)
url::AddStandardScheme(scheme.c_str(), url::SCHEME_WITHOUT_PORT);
url::AddStandardScheme(scheme.c_str(), url::SCHEME_WITH_HOST);
isolated_world_ = base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kContextIsolation);
// We rely on the unique process host id which is notified to the