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

Side by Side Diff: chrome/browser/metrics/chrome_stability_metrics_provider.h

Issue 580093004: Reset some UMA stability stats on a version change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 #ifndef CHROME_BROWSER_METRICS_CHROME_STABILITY_METRICS_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_METRICS_CHROME_STABILITY_METRICS_PROVIDER_H_
6 #define CHROME_BROWSER_METRICS_CHROME_STABILITY_METRICS_PROVIDER_H_ 6 #define CHROME_BROWSER_METRICS_CHROME_STABILITY_METRICS_PROVIDER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/metrics/user_metrics.h" 9 #include "base/metrics/user_metrics.h"
10 #include "base/process/kill.h" 10 #include "base/process/kill.h"
(...skipping 17 matching lines...) Expand all
28 public content::NotificationObserver { 28 public content::NotificationObserver {
29 public: 29 public:
30 ChromeStabilityMetricsProvider(); 30 ChromeStabilityMetricsProvider();
31 virtual ~ChromeStabilityMetricsProvider(); 31 virtual ~ChromeStabilityMetricsProvider();
32 32
33 // metrics::MetricsDataProvider: 33 // metrics::MetricsDataProvider:
34 virtual void OnRecordingEnabled() OVERRIDE; 34 virtual void OnRecordingEnabled() OVERRIDE;
35 virtual void OnRecordingDisabled() OVERRIDE; 35 virtual void OnRecordingDisabled() OVERRIDE;
36 virtual void ProvideStabilityMetrics( 36 virtual void ProvideStabilityMetrics(
37 metrics::SystemProfileProto* system_profile_proto) OVERRIDE; 37 metrics::SystemProfileProto* system_profile_proto) OVERRIDE;
38 virtual void ClearSavedStabilityMetrics() OVERRIDE;
38 39
39 // Registers local state prefs used by this class. 40 // Registers local state prefs used by this class.
40 static void RegisterPrefs(PrefRegistrySimple* registry); 41 static void RegisterPrefs(PrefRegistrySimple* registry);
41 42
42 private: 43 private:
43 // content::NotificationObserver: 44 // content::NotificationObserver:
44 virtual void Observe(int type, 45 virtual void Observe(int type,
45 const content::NotificationSource& source, 46 const content::NotificationSource& source,
46 const content::NotificationDetails& details) OVERRIDE; 47 const content::NotificationDetails& details) OVERRIDE;
47 48
(...skipping 13 matching lines...) Expand all
61 // Records a renderer process hang. 62 // Records a renderer process hang.
62 void LogRendererHang(); 63 void LogRendererHang();
63 64
64 // Registrar for receiving stability-related notifications. 65 // Registrar for receiving stability-related notifications.
65 content::NotificationRegistrar registrar_; 66 content::NotificationRegistrar registrar_;
66 67
67 DISALLOW_COPY_AND_ASSIGN(ChromeStabilityMetricsProvider); 68 DISALLOW_COPY_AND_ASSIGN(ChromeStabilityMetricsProvider);
68 }; 69 };
69 70
70 #endif // CHROME_BROWSER_METRICS_CHROME_STABILITY_METRICS_PROVIDER_H_ 71 #endif // CHROME_BROWSER_METRICS_CHROME_STABILITY_METRICS_PROVIDER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/metrics/chrome_stability_metrics_provider.cc » ('j') | components/metrics/metrics_provider.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698