Index: chrome/browser/extensions/extension_service.cc |
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc |
index 2d0a040430758c1339aae98ed763a5ff5b917d34..2dc9a2faf760b8b816cbef34b536192803d2392c 100644 |
--- a/chrome/browser/extensions/extension_service.cc |
+++ b/chrome/browser/extensions/extension_service.cc |
@@ -1961,6 +1961,17 @@ void ExtensionService::UnloadExtension( |
content::Details<const Extension>(extension.get())); |
} |
+void ExtensionService::RemoveComponentExtension( |
+ const std::string& extension_id) { |
+ scoped_refptr<const Extension> extension( |
+ GetExtensionById(extension_id, false)); |
+ UnloadExtension(extension_id, extension_misc::UNLOAD_REASON_UNINSTALL); |
+ content::NotificationService::current()->Notify( |
+ chrome::NOTIFICATION_EXTENSION_UNINSTALLED, |
+ content::Source<Profile>(profile_), |
+ content::Details<const Extension>(extension.get())); |
+} |
+ |
void ExtensionService::UnloadAllExtensions() { |
profile_->GetExtensionSpecialStoragePolicy()->RevokeRightsForAllExtensions(); |