Index: chrome/browser/extensions/extension_service.h |
diff --git a/chrome/browser/extensions/extension_service.h b/chrome/browser/extensions/extension_service.h |
index f8a7bba4630b4313ace839320d01b7107065b9fc..432c81390f91aff3323ef069e74d97106b774a47 100644 |
--- a/chrome/browser/extensions/extension_service.h |
+++ b/chrome/browser/extensions/extension_service.h |
@@ -227,23 +227,6 @@ class ExtensionService |
virtual const extensions::Extension* GetExtensionById( |
const std::string& id, bool include_disabled) const OVERRIDE; |
- enum IncludeFlag { |
- INCLUDE_NONE = 0, |
- INCLUDE_ENABLED = 1 << 0, |
- INCLUDE_DISABLED = 1 << 1, |
- INCLUDE_TERMINATED = 1 << 2, |
- INCLUDE_BLACKLISTED = 1 << 3, |
- INCLUDE_EVERYTHING = (1 << 4) - 1, |
- }; |
- |
- // Look up an extension by ID, selecting which sets to look in: |
- // * extensions() --> INCLUDE_ENABLED |
- // * disabled_extensions() --> INCLUDE_DISABLED |
- // * terminated_extensions() --> INCLUDE_TERMINATED |
- // * blacklisted_extensions() --> INCLUDE_BLACKLISTED |
- const extensions::Extension* GetExtensionById(const std::string& id, |
- int include_mask) const; |
- |
// Returns the site of the given |extension_id|. Suitable for use with |
// BrowserContext::GetStoragePartitionForSite(). |
GURL GetSiteForExtensionId(const std::string& extension_id); |
@@ -437,6 +420,9 @@ class ExtensionService |
Profile* profile(); |
+ // Returns profile_ as a BrowserContext. |
+ content::BrowserContext* GetBrowserContext() const; |
+ |
// TODO(skerner): Change to const ExtensionPrefs& extension_prefs() const, |
// ExtensionPrefs* mutable_extension_prefs(). |
extensions::ExtensionPrefs* extension_prefs(); |