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

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

Issue 706623004: Add minimum version to extension management (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ext-update-url
Patch Set: fixes addressing #44 Created 6 years 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_test_util.h
diff --git a/chrome/browser/extensions/extension_management_test_util.h b/chrome/browser/extensions/extension_management_test_util.h
index ded3ea492e3df76ea8bcf6a8d49809a1fd2e1d02..1a347833abfc29e960f8387a861ba9fd11de7f81 100644
--- a/chrome/browser/extensions/extension_management_test_util.h
+++ b/chrome/browser/extensions/extension_management_test_util.h
@@ -62,7 +62,7 @@ class ExtensionManagementPrefUpdaterBase {
const std::string& permission);
// Helper functions for 'allowed_permissions' manipulation. |id| must be a
- // valid extension id.
+ // valid extension ID.
void UnsetAllowedPermissions(const std::string& id);
void ClearAllowedPermissions(const std::string& id);
void AddAllowedPermission(const std::string& id,
@@ -70,6 +70,12 @@ class ExtensionManagementPrefUpdaterBase {
void RemoveAllowedPermission(const std::string& id,
const std::string& permission);
+ // Helper functions for 'minimum_version_required' manipulation. |id| must be
+ // a valid extension ID.
+ void SetMinimumVersionRequired(const std::string& id,
+ const std::string& version);
+ void UnsetMinimumVersionRequired(const std::string& id);
+
// Expose a read-only preference to user.
const base::DictionaryValue* GetPref();

Powered by Google App Engine
This is Rietveld 408576698