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

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

Issue 14238037: Made it possible to tell whether an extension is being installed or updated. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added extra check. Created 7 years, 8 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 9359346707ed4e79fb4f83dd472121f3880e205e..89e50cdd342c4208cafade1080e597e23759a141 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -2423,10 +2423,12 @@ void ExtensionService::FinishDelayedInstallation(
}
void ExtensionService::FinishInstallation(const Extension* extension) {
+ bool is_update = GetInstalledExtension(extension->id()) != NULL;
+ extensions::InstalledExtensionInfo details(extension, is_update);
content::NotificationService::current()->Notify(
chrome::NOTIFICATION_EXTENSION_INSTALLED,
content::Source<Profile>(profile_),
- content::Details<const Extension>(extension));
+ content::Details<const extensions::InstalledExtensionInfo>(&details));
bool unacknowledged_external = IsUnacknowledgedExternalExtension(extension);
« no previous file with comments | « chrome/browser/extensions/extension_blacklist_browsertest.cc ('k') | chrome/browser/extensions/extension_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698