| Index: chrome/browser/extensions/crx_installer.cc
|
| diff --git a/chrome/browser/extensions/crx_installer.cc b/chrome/browser/extensions/crx_installer.cc
|
| index 40d8cd2650b01da91a08fe7bc121e948f3408825..12f988ed7c8adfdfb97af49c3bc66c5d15df33e5 100644
|
| --- a/chrome/browser/extensions/crx_installer.cc
|
| +++ b/chrome/browser/extensions/crx_installer.cc
|
| @@ -190,7 +190,7 @@ bool CrxInstaller::AllowInstall(Extension* extension, std::string* error) {
|
| // 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.
|
| - if (!is_gallery_install_) {
|
| + if (!is_gallery_install_ && client_) {
|
| URLPattern pattern(UserScript::kValidUserScriptSchemes);
|
| pattern.set_host(original_url_.host());
|
| pattern.set_match_subdomains(true);
|
|
|