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

Unified Diff: extensions/browser/extension_registry.h

Issue 1130353010: Remove deprecated ExtensionService::GetInstalledExtension() usage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed review Created 5 years, 6 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
Index: extensions/browser/extension_registry.h
diff --git a/extensions/browser/extension_registry.h b/extensions/browser/extension_registry.h
index d29a37bc6de8eab674312206008c710f9f7da463..55f5c681db6596f8e470f491a2b929134f9d8720 100644
--- a/extensions/browser/extension_registry.h
+++ b/extensions/browser/extension_registry.h
@@ -123,6 +123,10 @@ class ExtensionRegistry : public KeyedService {
const Extension* GetExtensionById(const std::string& id,
int include_mask) const;
+ // Looks up an extension by ID, regardless of whether it's enabled,
+ // disabled, blacklisted, or terminated.
+ const Extension* GetInstalledExtension(const std::string& id) const;
+
// Adds the specified extension to the enabled set. The registry becomes an
// owner. Any previous extension with the same ID is removed.
// Returns true if there is no previous extension.

Powered by Google App Engine
This is Rietveld 408576698