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

Side by Side Diff: chromecast/browser/metrics/cast_stability_metrics_provider.cc

Issue 1662523004: Delete base/prefs and update callers to use components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months 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 unified diff | Download patch
OLDNEW
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/browser/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"
13 #include "base/prefs/pref_service.h"
14 #include "chromecast/base/pref_names.h" 12 #include "chromecast/base/pref_names.h"
15 #include "chromecast/browser/cast_browser_process.h" 13 #include "chromecast/browser/cast_browser_process.h"
16 #include "chromecast/browser/metrics/cast_metrics_service_client.h" 14 #include "chromecast/browser/metrics/cast_metrics_service_client.h"
17 #include "components/metrics/metrics_service.h" 15 #include "components/metrics/metrics_service.h"
18 #include "components/metrics/proto/system_profile.pb.h" 16 #include "components/metrics/proto/system_profile.pb.h"
17 #include "components/prefs/pref_registry_simple.h"
18 #include "components/prefs/pref_service.h"
19 #include "content/public/browser/child_process_data.h" 19 #include "content/public/browser/child_process_data.h"
20 #include "content/public/browser/navigation_controller.h" 20 #include "content/public/browser/navigation_controller.h"
21 #include "content/public/browser/notification_service.h" 21 #include "content/public/browser/notification_service.h"
22 #include "content/public/browser/notification_types.h" 22 #include "content/public/browser/notification_types.h"
23 #include "content/public/browser/render_process_host.h" 23 #include "content/public/browser/render_process_host.h"
24 24
25 namespace chromecast { 25 namespace chromecast {
26 namespace metrics { 26 namespace metrics {
27 27
28 namespace { 28 namespace {
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 IncrementPrefValue(prefs::kStabilityRendererFailedLaunchCount); 183 IncrementPrefValue(prefs::kStabilityRendererFailedLaunchCount);
184 } 184 }
185 } 185 }
186 186
187 void CastStabilityMetricsProvider::LogRendererHang() { 187 void CastStabilityMetricsProvider::LogRendererHang() {
188 IncrementPrefValue(prefs::kStabilityRendererHangCount); 188 IncrementPrefValue(prefs::kStabilityRendererHangCount);
189 } 189 }
190 190
191 } // namespace metrics 191 } // namespace metrics
192 } // namespace chromecast 192 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/browser/metrics/cast_metrics_service_client.cc ('k') | chromecast/browser/pref_service_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698