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

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, 3 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
« no previous file with comments | « chrome/browser/extensions/extension_service.h ('k') | chrome/browser/extensions/install_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_service.cc
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
index 6a57a5d499b93b2fcede32c6ef55d325f0b2eb04..bf50565876625d1827c25ad274bcd1a8fb5d8be5 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();
« no previous file with comments | « chrome/browser/extensions/extension_service.h ('k') | chrome/browser/extensions/install_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698