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

Unified Diff: chrome/browser/extensions/extension_service.cc

Issue 23636002: Fixed how Apps Developer Tools is enabled/disabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 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: 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();

Powered by Google App Engine
This is Rietveld 408576698