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

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

Issue 2469193002: Fix enum in UMA Extensions.OffStoreInstallDecisionHard (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/crx_installer.cc
diff --git a/chrome/browser/extensions/crx_installer.cc b/chrome/browser/extensions/crx_installer.cc
index 160f96b4dadefc52c894a5c594016fbc472376a3..9de911b511bcc1caea7b64c2a9086d608c6c5df8 100644
--- a/chrome/browser/extensions/crx_installer.cc
+++ b/chrome/browser/extensions/crx_installer.cc
@@ -340,17 +340,20 @@ CrxInstallError CrxInstaller::AllowInstall(const Extension* extension) {
} else {
const char kHistogramName[] = "Extensions.OffStoreInstallDecisionHard";
if (is_gallery_install()) {
- UMA_HISTOGRAM_ENUMERATION(kHistogramName, OnStoreInstall,
+ UMA_HISTOGRAM_ENUMERATION(kHistogramName,
+ OffStoreInstallDecision::OnStoreInstall,
NumOffStoreInstallDecision);
} else if (off_store_install_allow_reason_ != OffStoreInstallDisallowed) {
- UMA_HISTOGRAM_ENUMERATION(kHistogramName, OffStoreInstallAllowed,
- NumOffStoreInstallDecision);
+ UMA_HISTOGRAM_ENUMERATION(
+ kHistogramName, OffStoreInstallDecision::OffStoreInstallAllowed,
+ NumOffStoreInstallDecision);
UMA_HISTOGRAM_ENUMERATION("Extensions.OffStoreInstallAllowReason",
off_store_install_allow_reason_,
NumOffStoreInstallAllowReasons);
} else {
- UMA_HISTOGRAM_ENUMERATION(kHistogramName, OffStoreInstallDisallowed,
- NumOffStoreInstallDecision);
+ UMA_HISTOGRAM_ENUMERATION(
+ kHistogramName, OffStoreInstallDecision::OffStoreInstallDisallowed,
+ NumOffStoreInstallDecision);
// Don't delete source in this case so that the user can install
// manually if they want.
delete_source_ = false;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698