[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());
}