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 "chromecast/metrics/cast_stability_metrics_provider.h" | 5 #include "chromecast/browser/metrics/cast_stability_metrics_provider.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
11 #include "base/metrics/sparse_histogram.h" | 11 #include "base/metrics/sparse_histogram.h" |
12 #include "base/prefs/pref_registry_simple.h" | 12 #include "base/prefs/pref_registry_simple.h" |
13 #include "base/prefs/pref_service.h" | 13 #include "base/prefs/pref_service.h" |
| 14 #include "chromecast/browser/metrics/cast_metrics_service_client.h" |
14 #include "chromecast/common/chromecast_config.h" | 15 #include "chromecast/common/chromecast_config.h" |
15 #include "chromecast/common/pref_names.h" | 16 #include "chromecast/common/pref_names.h" |
16 #include "chromecast/metrics/cast_metrics_service_client.h" | |
17 #include "components/metrics/proto/system_profile.pb.h" | 17 #include "components/metrics/proto/system_profile.pb.h" |
18 #include "content/public/browser/child_process_data.h" | 18 #include "content/public/browser/child_process_data.h" |
19 #include "content/public/browser/navigation_controller.h" | 19 #include "content/public/browser/navigation_controller.h" |
20 #include "content/public/browser/notification_service.h" | 20 #include "content/public/browser/notification_service.h" |
21 #include "content/public/browser/notification_types.h" | 21 #include "content/public/browser/notification_types.h" |
22 #include "content/public/browser/render_process_host.h" | 22 #include "content/public/browser/render_process_host.h" |
23 #include "content/public/browser/user_metrics.h" | 23 #include "content/public/browser/user_metrics.h" |
24 | 24 |
25 namespace chromecast { | 25 namespace chromecast { |
26 namespace metrics { | 26 namespace metrics { |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 UMA_HISTOGRAM_PERCENTAGE("BrowserRenderProcessHost.DisconnectedAlive", 1); | 143 UMA_HISTOGRAM_PERCENTAGE("BrowserRenderProcessHost.DisconnectedAlive", 1); |
144 } | 144 } |
145 } | 145 } |
146 | 146 |
147 void CastStabilityMetricsProvider::LogRendererHang() { | 147 void CastStabilityMetricsProvider::LogRendererHang() { |
148 IncrementPrefValue(prefs::kStabilityRendererHangCount); | 148 IncrementPrefValue(prefs::kStabilityRendererHangCount); |
149 } | 149 } |
150 | 150 |
151 } // namespace metrics | 151 } // namespace metrics |
152 } // namespace chromecast | 152 } // namespace chromecast |
OLD | NEW |