Index: chrome/browser/extensions/crx_installer.cc |
diff --git a/chrome/browser/extensions/crx_installer.cc b/chrome/browser/extensions/crx_installer.cc |
index 430b4441242b5610f8df445d5f26568c2f9f77f9..44245302902a9e848f77d064ab0cd338a9dacd36 100644 |
--- a/chrome/browser/extensions/crx_installer.cc |
+++ b/chrome/browser/extensions/crx_installer.cc |
@@ -292,7 +292,8 @@ bool CrxInstaller::AllowInstall(const Extension* extension, |
// For self-hosted apps, verify that the entire extent is on the same |
// host (or a subdomain of the host) the download happened from. There's |
// no way for us to verify that the app controls any other hosts. |
- URLPattern pattern(UserScript::kValidUserScriptSchemes); |
+ URLPattern pattern(URLPattern::ERROR_ON_PORTS, |
+ UserScript::kValidUserScriptSchemes); |
pattern.SetHost(download_url_.host()); |
pattern.SetMatchSubdomains(true); |