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

Unified Diff: chrome/browser/extensions/event_router.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: Test that already_installed is true on update, false on install. 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/event_router.cc
diff --git a/chrome/browser/extensions/event_router.cc b/chrome/browser/extensions/event_router.cc
index 4876f77cf504465a568f97dafad3400d82b905b5..7cf1a35e9f92aec967a831f0d53cb33e427d318c 100644
--- a/chrome/browser/extensions/event_router.cc
+++ b/chrome/browser/extensions/event_router.cc
@@ -658,7 +658,7 @@ void EventRouter::Observe(int type,
case chrome::NOTIFICATION_EXTENSION_INSTALLED: {
// Dispatch the onInstalled event.
const Extension* extension =
- content::Details<const Extension>(details).ptr();
+ content::Details<const InstalledExtensionInfo>(details)->extension;
// Get the previous version, if this is an upgrade.
ExtensionService* service =

Powered by Google App Engine
This is Rietveld 408576698