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

Unified Diff: chrome/browser/extensions/updater/extension_updater.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/updater/extension_updater.cc
diff --git a/chrome/browser/extensions/updater/extension_updater.cc b/chrome/browser/extensions/updater/extension_updater.cc
index 130da8f8da82f885c662f6c25bb0c0905b1297fd..b0a31c573da43d89a237421faa4a9adf4cb9cce7 100644
--- a/chrome/browser/extensions/updater/extension_updater.cc
+++ b/chrome/browser/extensions/updater/extension_updater.cc
@@ -665,7 +665,7 @@ void ExtensionUpdater::Observe(int type,
}
case chrome::NOTIFICATION_EXTENSION_INSTALLED: {
const Extension* extension =
- content::Details<const Extension>(details).ptr();
+ content::Details<const InstalledExtensionInfo>(details)->extension;
if (extension)
throttle_info_.erase(extension->id());
break;

Powered by Google App Engine
This is Rietveld 408576698