Index: chrome/browser/extensions/component_loader.h |
diff --git a/chrome/browser/extensions/component_loader.h b/chrome/browser/extensions/component_loader.h |
index ec7726975f7ae09c1253f8025e5b8858396beb75..5de83d321bd1a174593e70c16374c80ebb46221f 100644 |
--- a/chrome/browser/extensions/component_loader.h |
+++ b/chrome/browser/extensions/component_loader.h |
@@ -41,10 +41,17 @@ class ComponentLoader : public content::NotificationObserver { |
const Extension* Add(int manifest_resource_id, |
const FilePath& root_directory); |
+ // Loads a component extension from file system. |
+ const Extension* AddFromCommandLine(const FilePath& path); |
+ |
// Unloads a component extension and removes it from the list of component |
// extensions to be loaded. |
void Remove(const FilePath& root_directory); |
+ // Removes a component extension from the list of component |
+ // extensions to be loaded. |
+ void Remove(const std::string& id); |
+ |
// Adds the default component extensions. |
// |
// Component extension manifests must contain a 'key' property with a unique |
@@ -96,6 +103,9 @@ class ComponentLoader : public content::NotificationObserver { |
// Add the enterprise webstore extension, or reload it if already loaded. |
void AddOrReloadEnterpriseWebStore(); |
+ // Determine the extension id and unload the extension. |
+ std::string GenerateId(const base::DictionaryValue* manifest); |
+ |
PrefService* prefs_; |
PrefService* local_state_; |