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/metrics_service.h

Issue 308433004: Reduce plugin_metrics_provider_ usage in MetricsService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 6 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
« no previous file with comments | « chrome/browser/browser_process_impl.cc ('k') | chrome/browser/metrics/metrics_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 // This count is eventually send via UMA logs. 200 // This count is eventually send via UMA logs.
201 void RecordBreakpadRegistration(bool success); 201 void RecordBreakpadRegistration(bool success);
202 202
203 // Saves in the preferences if the browser is running under a debugger. 203 // Saves in the preferences if the browser is running under a debugger.
204 // This count is eventually send via UMA logs. 204 // This count is eventually send via UMA logs.
205 void RecordBreakpadHasDebugger(bool has_debugger); 205 void RecordBreakpadHasDebugger(bool has_debugger);
206 206
207 bool recording_active() const; 207 bool recording_active() const;
208 bool reporting_active() const; 208 bool reporting_active() const;
209 209
210 // TODO(blundell): Move this to ChromeMetricsServiceClient.
210 void LogPluginLoadingError(const base::FilePath& plugin_path); 211 void LogPluginLoadingError(const base::FilePath& plugin_path);
211 212
212 // Redundant test to ensure that we are notified of a clean exit. 213 // Redundant test to ensure that we are notified of a clean exit.
213 // This value should be true when process has completed shutdown. 214 // This value should be true when process has completed shutdown.
214 static bool UmaMetricsProperlyShutdown(); 215 static bool UmaMetricsProperlyShutdown();
215 216
216 // Registers a field trial name and group to be used to annotate a UMA report 217 // Registers a field trial name and group to be used to annotate a UMA report
217 // with a particular Chrome configuration state. A UMA report will be 218 // with a particular Chrome configuration state. A UMA report will be
218 // annotated with this trial group if and only if all events in the report 219 // annotated with this trial group if and only if all events in the report
219 // were created after the trial is registered. Only one group name may be 220 // were created after the trial is registered. Only one group name may be
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, IsPluginProcess); 500 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, IsPluginProcess);
500 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, MetricsServiceObserver); 501 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, MetricsServiceObserver);
501 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, 502 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest,
502 PermutedEntropyCacheClearedWhenLowEntropyReset); 503 PermutedEntropyCacheClearedWhenLowEntropyReset);
503 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, RegisterSyntheticTrial); 504 FRIEND_TEST_ALL_PREFIXES(MetricsServiceTest, RegisterSyntheticTrial);
504 505
505 DISALLOW_COPY_AND_ASSIGN(MetricsService); 506 DISALLOW_COPY_AND_ASSIGN(MetricsService);
506 }; 507 };
507 508
508 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_ 509 #endif // CHROME_BROWSER_METRICS_METRICS_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_process_impl.cc ('k') | chrome/browser/metrics/metrics_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698