Index: extensions/utility/unpacker.cc |
diff --git a/extensions/utility/unpacker.cc b/extensions/utility/unpacker.cc |
index 4c3dbd48a947979061842f9d4b12cb64d8bae7b2..217c31a91a81dc6fe678ebb77d4f0549e0002af3 100644 |
--- a/extensions/utility/unpacker.cc |
+++ b/extensions/utility/unpacker.cc |
@@ -115,6 +115,12 @@ Unpacker::Unpacker(const base::FilePath& working_dir, |
Unpacker::~Unpacker() { |
} |
+// static |
+bool Unpacker::ShouldExtractFile(const base::FilePath& file_path) { |
+ return !base::FilePath::CompareEqualIgnoreCase(file_path.FinalExtension(), |
+ FILE_PATH_LITERAL(".exe")); |
+} |
+ |
std::unique_ptr<base::DictionaryValue> Unpacker::ReadManifest() { |
base::FilePath manifest_path = extension_dir_.Append(kManifestFilename); |
if (!base::PathExists(manifest_path)) { |