From ed45566a74d2a8dae55ab4e2589ce5f0d78e49b2 Mon Sep 17 00:00:00 2001 From: "aa@chromium.org" Date: Wed, 28 Oct 2009 02:30:43 +0000 Subject: 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 --- chrome/browser/extensions/extension_creator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chrome/browser/extensions/extension_creator.cc') 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; } -- cgit v1.1