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

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

Issue 706623004: Add minimum version to extension management (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ext-update-url
Patch Set: WIP 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.h
diff --git a/chrome/browser/extensions/extension_management.h b/chrome/browser/extensions/extension_management.h
index 6b66dfd4034dae5b1db8c1b5ecb3661aeb01d354..6edeba83ac7767b4a93ce4a3a6fdf8a9d13ff7cd 100644
--- a/chrome/browser/extensions/extension_management.h
+++ b/chrome/browser/extensions/extension_management.h
@@ -121,6 +121,13 @@ class ExtensionManagement : public KeyedService {
bool IsPermissionSetAllowed(const Extension* extension,
scoped_refptr<const PermissionSet> perms) const;
+ // Returns true if |extension| meet the minimum required version set for it.
pastarmovj 2014/11/11 12:50:54 s/meet/meets/
binjin 2014/11/11 19:10:37 Done.
+ // If there are no such requirement set for it, returns true as well.
pastarmovj 2014/11/11 12:50:54 s/are/is/
binjin 2014/11/11 19:10:37 Done.
+ // If false is returned and |required_version| is not null, set it to the
+ // minimum required version as string.
+ bool CheckMinimumVersion(const Extension* extension,
+ std::string* required_version) const;
+
private:
typedef base::ScopedPtrHashMap<ExtensionId, internal::IndividualSettings>
SettingsIdMap;

Powered by Google App Engine
This is Rietveld 408576698