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

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

Issue 706623004: Add minimum version to extension management (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ext-update-url
Patch Set: fix comment Created 6 years, 1 month 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: chrome/browser/extensions/extension_management_internal.h
diff --git a/chrome/browser/extensions/extension_management_internal.h b/chrome/browser/extensions/extension_management_internal.h
index 944f710a3da9a4087e60823071eaeb649d24312b..36eb6ccde75f2339ef3afacef800fa7a463cd6c0 100644
--- a/chrome/browser/extensions/extension_management_internal.h
+++ b/chrome/browser/extensions/extension_management_internal.h
@@ -14,6 +14,7 @@
namespace base {
class DictionaryValue;
+class Version;
} // namespace base
namespace extensions {
@@ -47,6 +48,7 @@ struct IndividualSettings {
};
IndividualSettings();
+ explicit IndividualSettings(const IndividualSettings* default_settings);
~IndividualSettings();
void Reset();
@@ -86,8 +88,13 @@ struct IndividualSettings {
// settings, both settings will be enforced.
APIPermissionSet blocked_permissions;
+ // Minimum version required for an extensions, applies to per-extension
+ // settings only. Extension (with specified extension ID) with version older
+ // than the specified minimum version will be disabled.
+ scoped_ptr<base::Version> minimum_version_required;
+
private:
- DISALLOW_ASSIGN(IndividualSettings);
+ DISALLOW_COPY_AND_ASSIGN(IndividualSettings);
};
// Global extension management settings, applicable to all extensions.

Powered by Google App Engine
This is Rietveld 408576698