Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(674)

Unified Diff: extensions/utility/unpacker.h

Issue 2321823002: Exclude exe files while unzipping CRXes (Closed)
Patch Set: Devlin comments Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: extensions/utility/unpacker.h
diff --git a/extensions/utility/unpacker.h b/extensions/utility/unpacker.h
index cc2bbca1ff6b146c565437f3b6c749b25d46a708..25c9e529c755e73a6bb4f185a61874f8e95e7893 100644
--- a/extensions/utility/unpacker.h
+++ b/extensions/utility/unpacker.h
@@ -34,6 +34,9 @@ class Unpacker {
int creation_flags);
~Unpacker();
+ // Returns true if the given base::FilePath should be unzipped.
+ static bool ShouldExtractFile(const base::FilePath& file_path);
+
// Runs the processing steps for the extension. On success, this returns true
// and the decoded images will be in a file at
// |working_dir|/kDecodedImagesFilename and the decoded messages will be in a

Powered by Google App Engine
This is Rietveld 408576698