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

Unified Diff: extensions/browser/extension_registry.cc

Issue 2892843002: Remove RuntimeAPIDelegate::GetPreviousVersion. (Closed)
Patch Set: address missing comments Created 3 years, 7 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 | « extensions/browser/extension_registry.h ('k') | extensions/browser/test_runtime_api_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/extension_registry.cc
diff --git a/extensions/browser/extension_registry.cc b/extensions/browser/extension_registry.cc
index 9c2bf16f53ec80f74192f883ae8753bbd51d8638..24ef83b54c86e432ffc7d15096cdf45ea177e5a8 100644
--- a/extensions/browser/extension_registry.cc
+++ b/extensions/browser/extension_registry.cc
@@ -40,6 +40,15 @@ std::unique_ptr<ExtensionSet> ExtensionRegistry::GenerateInstalledExtensionsSet(
return installed_extensions;
}
+base::Version ExtensionRegistry::GetStoredVersion(const ExtensionId& id) const {
+ // TODO(lazyboy): Why not TERMINATED? https://crbug.com/724563.
+ int include_mask = ExtensionRegistry::ENABLED | ExtensionRegistry::DISABLED |
+ ExtensionRegistry::BLACKLISTED |
+ ExtensionRegistry::BLOCKED;
+ const Extension* registry_extension = GetExtensionById(id, include_mask);
+ return registry_extension ? *registry_extension->version() : base::Version();
+}
+
void ExtensionRegistry::AddObserver(ExtensionRegistryObserver* observer) {
observers_.AddObserver(observer);
}
« no previous file with comments | « extensions/browser/extension_registry.h ('k') | extensions/browser/test_runtime_api_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698