diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-20 20:47:58 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-20 20:47:58 +0000 |
commit | 3d41d434e9101860baf8cce8bb48e4ba0a693873 (patch) | |
tree | 8c8cdf3f769dc6137f047b2ae2a9ea22b01f536e /chrome/browser/extensions/extension_creator.cc | |
parent | e2def0e6c57e2c08f9e0d422fb7554c446bf6a6e (diff) | |
download | chromium_src-3d41d434e9101860baf8cce8bb48e4ba0a693873.zip chromium_src-3d41d434e9101860baf8cce8bb48e4ba0a693873.tar.gz chromium_src-3d41d434e9101860baf8cce8bb48e4ba0a693873.tar.bz2 |
Allow extensions to be packed where the resources are symlinks.
BUG=123488
TEST=unit_tests
Review URL: http://codereview.chromium.org/10041007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133270 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_creator.cc')
-rw-r--r-- | chrome/browser/extensions/extension_creator.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/browser/extensions/extension_creator.cc b/chrome/browser/extensions/extension_creator.cc index 3f82e6e..5550c2f 100644 --- a/chrome/browser/extensions/extension_creator.cc +++ b/chrome/browser/extensions/extension_creator.cc @@ -101,11 +101,12 @@ bool ExtensionCreator::ValidateManifest(const FilePath& extension_dir, // Load the extension once. We don't really need it, but this does a lot of // useful validation of the structure. scoped_refptr<Extension> extension( - extension_file_util::LoadExtension(extension_dir, - extension_id, - Extension::INTERNAL, - Extension::STRICT_ERROR_CHECKS, - &error_message_)); + extension_file_util::LoadExtension( + extension_dir, + extension_id, + Extension::INTERNAL, + Extension::STRICT_ERROR_CHECKS | Extension::FOLLOW_SYMLINKS_ANYWHERE, + &error_message_)); return !!extension.get(); } |