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

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: 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/event_router.cc
diff --git a/chrome/browser/extensions/event_router.cc b/chrome/browser/extensions/event_router.cc
index ae8a3f912f48597f08a7e642eb0b0f50f16b2e85..f683a55451142001628114c8e3e6a5eca956a798 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 =
« no previous file with comments | « chrome/browser/extensions/convert_web_app_browsertest.cc ('k') | chrome/browser/extensions/extension_blacklist_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698