| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/metrics/android_metrics_provider.h" | 5 #include "chrome/browser/metrics/android_metrics_provider.h" |
| 6 | 6 |
| 7 #include "base/metrics/histogram_macros.h" | 7 #include "base/metrics/histogram_macros.h" |
| 8 #include "base/sys_info.h" | 8 #include "base/sys_info.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "chrome/browser/android/feature_utilities.h" | 10 #include "chrome/browser/android/feature_utilities.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 } | 40 } |
| 41 | 41 |
| 42 void AndroidMetricsProvider::ProvideStabilityMetrics( | 42 void AndroidMetricsProvider::ProvideStabilityMetrics( |
| 43 metrics::SystemProfileProto* system_profile_proto) { | 43 metrics::SystemProfileProto* system_profile_proto) { |
| 44 ConvertStabilityPrefsToHistograms(); | 44 ConvertStabilityPrefsToHistograms(); |
| 45 } | 45 } |
| 46 | 46 |
| 47 void AndroidMetricsProvider::ProvideGeneralMetrics( | 47 void AndroidMetricsProvider::ProvideGeneralMetrics( |
| 48 metrics::ChromeUserMetricsExtension* uma_proto) { | 48 metrics::ChromeUserMetricsExtension* uma_proto) { |
| 49 UMA_HISTOGRAM_ENUMERATION( | 49 UMA_HISTOGRAM_ENUMERATION( |
| 50 "DocumentActivity.Enabled", | |
| 51 chrome::android::GetDocumentModeValue(), | |
| 52 chrome::android::RUNNING_MODE_MAX); | |
| 53 UMA_HISTOGRAM_ENUMERATION( | |
| 54 "CustomTabs.Visible", | 50 "CustomTabs.Visible", |
| 55 chrome::android::GetCustomTabsVisibleValue(), | 51 chrome::android::GetCustomTabsVisibleValue(), |
| 56 chrome::android::CUSTOM_TABS_VISIBILITY_MAX); | 52 chrome::android::CUSTOM_TABS_VISIBILITY_MAX); |
| 57 UMA_HISTOGRAM_BOOLEAN( | 53 UMA_HISTOGRAM_BOOLEAN( |
| 58 "MemoryAndroid.LowRamDevice", | 54 "MemoryAndroid.LowRamDevice", |
| 59 base::SysInfo::IsLowEndDevice()); | 55 base::SysInfo::IsLowEndDevice()); |
| 60 UMA_HISTOGRAM_BOOLEAN( | 56 UMA_HISTOGRAM_BOOLEAN( |
| 61 "Android.MultiWindowMode.Active", | 57 "Android.MultiWindowMode.Active", |
| 62 chrome::android::GetIsInMultiWindowModeValue()); | 58 chrome::android::GetIsInMultiWindowModeValue()); |
| 63 } | 59 } |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 for (int count = 0; count < crash_count; ++count) { | 153 for (int count = 0; count < crash_count; ++count) { |
| 158 UMA_STABILITY_HISTOGRAM_ENUMERATION("Chrome.Android.Activity.CrashCounts", | 154 UMA_STABILITY_HISTOGRAM_ENUMERATION("Chrome.Android.Activity.CrashCounts", |
| 159 activity_type, | 155 activity_type, |
| 160 ActivityTypeIds::ACTIVITY_MAX_VALUE); | 156 ActivityTypeIds::ACTIVITY_MAX_VALUE); |
| 161 } | 157 } |
| 162 } | 158 } |
| 163 | 159 |
| 164 launch_counts->Clear(); | 160 launch_counts->Clear(); |
| 165 crash_counts->Clear(); | 161 crash_counts->Clear(); |
| 166 } | 162 } |
| OLD | NEW |