summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_creator.cc
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-28 02:30:43 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-28 02:30:43 +0000
commited45566a74d2a8dae55ab4e2589ce5f0d78e49b2 (patch)
tree7c24abaa9d7e76f2482e9ef75be0c25bc2319a9a /chrome/browser/extensions/extension_creator.cc
parenta4c34a20c8b0a2fae699edbacf1e82655dab147f (diff)
downloadchromium_src-ed45566a74d2a8dae55ab4e2589ce5f0d78e49b2.zip
chromium_src-ed45566a74d2a8dae55ab4e2589ce5f0d78e49b2.tar.gz
chromium_src-ed45566a74d2a8dae55ab4e2589ce5f0d78e49b2.tar.bz2
Filter out hidden files, both when loading extensions and when
packaging them. We also special case the common OS X zip dropping "__MACOSX" when loading extensions. BUG=23004 Review URL: http://codereview.chromium.org/340018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30312 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_creator.cc')
-rw-r--r--chrome/browser/extensions/extension_creator.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/extensions/extension_creator.cc b/chrome/browser/extensions/extension_creator.cc
index 8f65ad5..d9bc4d6 100644
--- a/chrome/browser/extensions/extension_creator.cc
+++ b/chrome/browser/extensions/extension_creator.cc
@@ -123,7 +123,7 @@ bool ExtensionCreator::CreateZip(const FilePath& extension_dir,
file_util::CreateNewTempDirectory(FILE_PATH_LITERAL("chrome_"), zip_path);
*zip_path = zip_path->Append(FILE_PATH_LITERAL("extension.zip"));
- if (!Zip(extension_dir, *zip_path)) {
+ if (!Zip(extension_dir, *zip_path, false)) { // no hidden files
error_message_ = "Failed to create temporary zip file during packaging.";
return false;
}