Index: chrome/browser/extensions/default_apps.cc |
diff --git a/chrome/browser/extensions/default_apps.cc b/chrome/browser/extensions/default_apps.cc |
index 1dff210a4bae810eecc047f50669dbbec28046f5..cc2bbe100557046ae689976b1441c60371037370 100644 |
--- a/chrome/browser/extensions/default_apps.cc |
+++ b/chrome/browser/extensions/default_apps.cc |
@@ -5,6 +5,7 @@ |
#include "chrome/browser/extensions/default_apps.h" |
#include "base/command_line.h" |
+#include "base/metrics/histogram.h" |
#include "chrome/browser/prefs/pref_service.h" |
#include "chrome/common/chrome_switches.h" |
#include "chrome/common/pref_names.h" |
@@ -84,10 +85,15 @@ void DefaultApps::DidShowPromo() { |
return; |
} |
- if (promo_counter < kAppsPromoCounterMax) |
+ if (promo_counter < kAppsPromoCounterMax) { |
+ if (promo_counter + 1 == kAppsPromoCounterMax) |
+ UMA_HISTOGRAM_ENUMERATION("Extensions.AppsPromo", |
+ extension_misc::EXPIRE_PROMO, |
+ extension_misc::MAX); |
SetPromoCounter(++promo_counter); |
- else |
+ } else { |
SetPromoHidden(); |
+ } |
} |
void DefaultApps::SetPromoHidden() { |