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

Unified Diff: extensions/browser/extension_registry.cc

Issue 398083002: Add "UninstallReason" parameter to ExtensionRegistryObserver::OnExtensionUninstalled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix header file. Created 6 years, 5 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 | « extensions/browser/extension_registry.h ('k') | extensions/browser/extension_registry_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/extension_registry.cc
diff --git a/extensions/browser/extension_registry.cc b/extensions/browser/extension_registry.cc
index 30801bc8bb542b310e8c65f9d0bd811e2948e4c9..0c1a80de8fc0d63be47f3273e6438c4f4d90eb58 100644
--- a/extensions/browser/extension_registry.cc
+++ b/extensions/browser/extension_registry.cc
@@ -76,11 +76,13 @@ void ExtensionRegistry::TriggerOnInstalled(const Extension* extension,
browser_context_, extension, is_update));
}
-void ExtensionRegistry::TriggerOnUninstalled(const Extension* extension) {
+void ExtensionRegistry::TriggerOnUninstalled(const Extension* extension,
+ UninstallReason reason) {
DCHECK(!GenerateInstalledExtensionsSet()->Contains(extension->id()));
- FOR_EACH_OBSERVER(ExtensionRegistryObserver,
- observers_,
- OnExtensionUninstalled(browser_context_, extension));
+ FOR_EACH_OBSERVER(
+ ExtensionRegistryObserver,
+ observers_,
+ OnExtensionUninstalled(browser_context_, extension, reason));
}
const Extension* ExtensionRegistry::GetExtensionById(const std::string& id,
« no previous file with comments | « extensions/browser/extension_registry.h ('k') | extensions/browser/extension_registry_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698