Index: chrome/browser/extensions/extension_service.cc |
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc |
index a8973f6ee595538c265252072264ae98867c28f8..4bc2c208f09e84ee4e9a45d590a8bb3183fc7019 100644 |
--- a/chrome/browser/extensions/extension_service.cc |
+++ b/chrome/browser/extensions/extension_service.cc |
@@ -2055,10 +2055,14 @@ void ExtensionService::OnExtensionInstalled(const Extension* extension) { |
} |
} |
- UMA_HISTOGRAM_ENUMERATION("Extensions.InstallType", |
- extension->GetType(), 100); |
- RecordPermissionMessagesHistogram( |
- extension, "Extensions.Permissions_Install"); |
+ // Do not record the install histograms for upgrades. |
+ if (!GetExtensionByIdInternal(extension->id(), true, true, false)) { |
+ UMA_HISTOGRAM_ENUMERATION("Extensions.InstallType", |
+ extension->GetType(), 100); |
+ RecordPermissionMessagesHistogram( |
+ extension, "Extensions.Permissions_Install"); |
+ } |
+ |
ShownSectionsHandler::OnExtensionInstalled(profile_->GetPrefs(), extension); |
extension_prefs_->OnExtensionInstalled( |
extension, initial_enable ? Extension::ENABLED : Extension::DISABLED); |