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

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

Issue 279073003: Add a function triggering extension installed to ExtensionRegistryObserver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback Created 6 years, 7 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 037abdbbdbe63e221bd4e4d1888fafcbb310cb18..4d2af45d0aea8d114892f5abe98186b88afcef2b 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -85,6 +85,7 @@ using extensions::ExtensionInfo;
using extensions::ExtensionRegistry;
using extensions::ExtensionSet;
using extensions::FeatureSwitch;
+using extensions::InstalledExtensionInfo;
not at google - send to devlin 2014/05/16 13:49:03 doesn't add much
limasdf 2014/05/16 20:39:14 Done. let me move ExtensionService into extensions
not at google - send to devlin 2014/05/16 23:03:35 one day :) or perhaps let's leave it outside the
using extensions::InstallVerifier;
using extensions::ManagementPolicy;
using extensions::Manifest;
@@ -1915,7 +1916,10 @@ void ExtensionService::FinishInstallation(const Extension* extension) {
content::NotificationService::current()->Notify(
chrome::NOTIFICATION_EXTENSION_INSTALLED,
content::Source<Profile>(profile_),
- content::Details<const extensions::InstalledExtensionInfo>(&details));
+ content::Details<const InstalledExtensionInfo>(&details));
+
+ ExtensionRegistry::Get(profile_)
+ ->TriggerOnInstalled(extension, is_update, old_name);
bool unacknowledged_external = IsUnacknowledgedExternalExtension(extension);
« no previous file with comments | « no previous file | chrome/browser/extensions/install_tracker.h » ('j') | chrome/browser/extensions/install_tracker.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698