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

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

Issue 292433015: Refactor MetricsLogChromeOS to ChromeOSMetricsProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build fixes Created 6 years, 7 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // This file defines a service that collects information about the user 5 // This file defines a service that collects information about the user
6 // experience in order to help improve future versions of the app. 6 // experience in order to help improve future versions of the app.
7 7
8 #ifndef CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ 8 #ifndef CHROME_BROWSER_METRICS_METRICS_SERVICE_H_
9 #define CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ 9 #define CHROME_BROWSER_METRICS_METRICS_SERVICE_H_
10 10
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 static void SetExecutionPhase(ExecutionPhase execution_phase); 194 static void SetExecutionPhase(ExecutionPhase execution_phase);
195 195
196 // Saves in the preferences if the crash report registration was successful. 196 // Saves in the preferences if the crash report registration was successful.
197 // This count is eventually send via UMA logs. 197 // This count is eventually send via UMA logs.
198 void RecordBreakpadRegistration(bool success); 198 void RecordBreakpadRegistration(bool success);
199 199
200 // Saves in the preferences if the browser is running under a debugger. 200 // Saves in the preferences if the browser is running under a debugger.
201 // This count is eventually send via UMA logs. 201 // This count is eventually send via UMA logs.
202 void RecordBreakpadHasDebugger(bool has_debugger); 202 void RecordBreakpadHasDebugger(bool has_debugger);
203 203
204 #if defined(OS_CHROMEOS)
205 // Records a Chrome OS crash.
206 void LogChromeOSCrash(const std::string &crash_type);
207 #endif
208
209 bool recording_active() const; 204 bool recording_active() const;
210 bool reporting_active() const; 205 bool reporting_active() const;
211 206
212 void LogPluginLoadingError(const base::FilePath& plugin_path); 207 void LogPluginLoadingError(const base::FilePath& plugin_path);
213 208
214 // Redundant test to ensure that we are notified of a clean exit. 209 // Redundant test to ensure that we are notified of a clean exit.
215 // This value should be true when process has completed shutdown. 210 // This value should be true when process has completed shutdown.
216 static bool UmaMetricsProperlyShutdown(); 211 static bool UmaMetricsProperlyShutdown();
217 212
218 // Registers a field trial name and group to be used to annotate a UMA report 213 // Registers a field trial name and group to be used to annotate a UMA report
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, IsPluginProcess); 515 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, IsPluginProcess);
521 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, MetricsServiceObserver); 516 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, MetricsServiceObserver);
522 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, 517 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest,
523 PermutedEntropyCacheClearedWhenLowEntropyReset); 518 PermutedEntropyCacheClearedWhenLowEntropyReset);
524 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, RegisterSyntheticTrial); 519 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, RegisterSyntheticTrial);
525 520
526 DISALLOW_COPY_AND_ASSIGN(MetricsService); 521 DISALLOW_COPY_AND_ASSIGN(MetricsService);
527 }; 522 };
528 523
529 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ 524 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/metrics/metrics_log_unittest.cc ('k') | chrome/browser/metrics/metrics_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698