summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/extension_file_util.cc
diff options
context:
space:
mode:
authorskerner@chromium.org <skerner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-04 21:25:31 +0000
committerskerner@chromium.org <skerner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-04 21:25:31 +0000
commit542258c2719723200e46a45fdd7dc571ed5b90cf (patch)
tree5a7754d98ef347c17328696e62ec93bde6738d89 /chrome/common/extensions/extension_file_util.cc
parent7b1c0376a17429471d2163c31ed4dbb05a9e819f (diff)
downloadchromium_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.cc8
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;