Index: chrome/browser/android/metrics/launch_metrics.cc |
diff --git a/chrome/browser/android/metrics/launch_metrics.cc b/chrome/browser/android/metrics/launch_metrics.cc |
index a44f9e3285fcf5327da8e40132caaf472ee1f9cc..c4b0378ec1f3f3a84c2cfa9dcc761afd686ec5a6 100644 |
--- a/chrome/browser/android/metrics/launch_metrics.cc |
+++ b/chrome/browser/android/metrics/launch_metrics.cc |
@@ -99,14 +99,15 @@ static void RecordLaunch(JNIEnv* env, |
break; |
} |
- UMA_HISTOGRAM_ENUMERATION("Launch.HomeScreenSource", histogram_source, |
+ UMA_HISTOGRAM_ENUMERATION("Launch.HomeScreenSource", |
+ static_cast<ShortcutInfo::Source>(histogram_source), |
ShortcutInfo::SOURCE_COUNT); |
rappor::SampleDomainAndRegistryFromGURL(g_browser_process->rappor_service(), |
rappor_metric_source, url); |
- int action = standalone ? HOME_SCREEN_LAUNCH_STANDALONE |
- : HOME_SCREEN_LAUNCH_SHORTCUT; |
+ HomeScreenLaunch action = |
+ standalone ? HOME_SCREEN_LAUNCH_STANDALONE : HOME_SCREEN_LAUNCH_SHORTCUT; |
std::string rappor_metric_action = standalone ? "Launch.HomeScreen.Standalone" |
: "Launch.HomeScreen.Shortcut"; |