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

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

Issue 624173002: replace OVERRIDE and FINAL with override and final in chrome/browser/[j-q]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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_CHROMEOS_METRICS_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_METRICS_CHROMEOS_METRICS_PROVIDER_H_
6 #define CHROME_BROWSER_METRICS_CHROMEOS_METRICS_PROVIDER_H_ 6 #define CHROME_BROWSER_METRICS_CHROMEOS_METRICS_PROVIDER_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "chrome/browser/metrics/perf_provider_chromeos.h" 9 #include "chrome/browser/metrics/perf_provider_chromeos.h"
10 #include "components/metrics/metrics_provider.h" 10 #include "components/metrics/metrics_provider.h"
(...skipping 18 matching lines...) Expand all
29 static void RegisterPrefs(PrefRegistrySimple* registry); 29 static void RegisterPrefs(PrefRegistrySimple* registry);
30 30
31 // Records a crash. 31 // Records a crash.
32 static void LogCrash(const std::string& crash_type); 32 static void LogCrash(const std::string& crash_type);
33 33
34 // Loads hardware class information. When this task is complete, |callback| 34 // Loads hardware class information. When this task is complete, |callback|
35 // is run. 35 // is run.
36 void InitTaskGetHardwareClass(const base::Closure& callback); 36 void InitTaskGetHardwareClass(const base::Closure& callback);
37 37
38 // metrics::MetricsProvider: 38 // metrics::MetricsProvider:
39 virtual void OnDidCreateMetricsLog() OVERRIDE; 39 virtual void OnDidCreateMetricsLog() override;
40 virtual void ProvideSystemProfileMetrics( 40 virtual void ProvideSystemProfileMetrics(
41 metrics::SystemProfileProto* system_profile_proto) OVERRIDE; 41 metrics::SystemProfileProto* system_profile_proto) override;
42 virtual void ProvideStabilityMetrics( 42 virtual void ProvideStabilityMetrics(
43 metrics::SystemProfileProto* system_profile_proto) OVERRIDE; 43 metrics::SystemProfileProto* system_profile_proto) override;
44 virtual void ProvideGeneralMetrics( 44 virtual void ProvideGeneralMetrics(
45 metrics::ChromeUserMetricsExtension* uma_proto) OVERRIDE; 45 metrics::ChromeUserMetricsExtension* uma_proto) override;
46 46
47 private: 47 private:
48 // Called on the FILE thread to load hardware class information. 48 // Called on the FILE thread to load hardware class information.
49 void InitTaskGetHardwareClassOnFileThread(); 49 void InitTaskGetHardwareClassOnFileThread();
50 50
51 // Update the number of users logged into a multi-profile session. 51 // Update the number of users logged into a multi-profile session.
52 // If the number of users change while the log is open, the call invalidates 52 // If the number of users change while the log is open, the call invalidates
53 // the user count value. 53 // the user count value.
54 void UpdateMultiProfileUserCount( 54 void UpdateMultiProfileUserCount(
55 metrics::SystemProfileProto* system_profile_proto); 55 metrics::SystemProfileProto* system_profile_proto);
(...skipping 21 matching lines...) Expand all
77 // Hardware class (e.g., hardware qualification ID). This class identifies 77 // Hardware class (e.g., hardware qualification ID). This class identifies
78 // the configured system components such as CPU, WiFi adapter, etc. 78 // the configured system components such as CPU, WiFi adapter, etc.
79 std::string hardware_class_; 79 std::string hardware_class_;
80 80
81 base::WeakPtrFactory<ChromeOSMetricsProvider> weak_ptr_factory_; 81 base::WeakPtrFactory<ChromeOSMetricsProvider> weak_ptr_factory_;
82 82
83 DISALLOW_COPY_AND_ASSIGN(ChromeOSMetricsProvider); 83 DISALLOW_COPY_AND_ASSIGN(ChromeOSMetricsProvider);
84 }; 84 };
85 85
86 #endif // CHROME_BROWSER_METRICS_CHROMEOS_METRICS_PROVIDER_H_ 86 #endif // CHROME_BROWSER_METRICS_CHROMEOS_METRICS_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698