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

Unified Diff: chrome/browser/extensions/extension_creator.h

Issue 10912041: Disallow packing or loading unpacked manifest v1 extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: blarh Created 8 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
« no previous file with comments | « chrome/browser/extensions/extension_browsertest.cc ('k') | chrome/browser/extensions/extension_creator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_creator.h
diff --git a/chrome/browser/extensions/extension_creator.h b/chrome/browser/extensions/extension_creator.h
index a7ec922a7216cf378ba59a76b3ab961ae1a37232..86243ba164bcc75794480d63f94bb9617b16bdfa 100644
--- a/chrome/browser/extensions/extension_creator.h
+++ b/chrome/browser/extensions/extension_creator.h
@@ -30,7 +30,8 @@ class ExtensionCreator {
// Settings to specify treatment of special or ignorable error conditions.
enum RunFlags {
kNoRunFlags = 0x0,
- kOverwriteCRX = 0x1
+ kOverwriteCRX = 0x1,
+ kRequireModernManifestVersion = 0x2,
};
// Categories of error that may need special handling on the UI end.
@@ -63,7 +64,8 @@ class ExtensionCreator {
// Validates the manifest by trying to load the extension.
bool ValidateManifest(const FilePath& extension_dir,
- crypto::RSAPrivateKey* key_pair);
+ crypto::RSAPrivateKey* key_pair,
+ int run_flags);
// Reads private key from |private_key_path|.
crypto::RSAPrivateKey* ReadInputKey(const FilePath& private_key_path);
« no previous file with comments | « chrome/browser/extensions/extension_browsertest.cc ('k') | chrome/browser/extensions/extension_creator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698