diff options
author | skerner@chromium.org <skerner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-04 21:25:31 +0000 |
---|---|---|
committer | skerner@chromium.org <skerner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-04 21:25:31 +0000 |
commit | 542258c2719723200e46a45fdd7dc571ed5b90cf (patch) | |
tree | 5a7754d98ef347c17328696e62ec93bde6738d89 /chrome/common/extensions/extension_file_util.cc | |
parent | 7b1c0376a17429471d2163c31ed4dbb05a9e819f (diff) | |
download | chromium_src-542258c2719723200e46a45fdd7dc571ed5b90cf.zip chromium_src-542258c2719723200e46a45fdd7dc571ed5b90cf.tar.gz chromium_src-542258c2719723200e46a45fdd7dc571ed5b90cf.tar.bz2 |
Give a helpful warning message if a url patern contains a port.
BUG=32160
TEST=ExtensionURLPatternTest.Ports,ExtensionManifestTest.*
Review URL: http://codereview.chromium.org/2835034
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76967 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/extension_file_util.cc')
-rw-r--r-- | chrome/common/extensions/extension_file_util.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/common/extensions/extension_file_util.cc b/chrome/common/extensions/extension_file_util.cc index 0a8197a..6e9a4eb 100644 --- a/chrome/common/extensions/extension_file_util.cc +++ b/chrome/common/extensions/extension_file_util.cc @@ -89,6 +89,7 @@ void UninstallExtension(const FilePath& extensions_dir, scoped_refptr<Extension> LoadExtension(const FilePath& extension_path, Extension::Location location, bool require_key, + bool strict_error_checks, std::string* error) { FilePath manifest_path = extension_path.Append(Extension::kManifestFilename); @@ -124,7 +125,12 @@ scoped_refptr<Extension> LoadExtension(const FilePath& extension_path, return NULL; scoped_refptr<Extension> extension(Extension::Create( - extension_path, location, *manifest, require_key, error)); + extension_path, + location, + *manifest, + require_key, + strict_error_checks, + error)); if (!extension.get()) return NULL; |