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

Side by Side Diff: components/metrics/metrics_reporting_default_state.h

Issue 2014463003: Modifications for recording whether UMA/Crash default state for iOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_METRICS_METRICS_REPORTING_DEFAULT_STATE_H_
6 #define COMPONENTS_METRICS_METRICS_REPORTING_DEFAULT_STATE_H_
7
8 #include "components/metrics/metrics_service_client.h"
9
10 class PrefRegistrySimple;
11 class PrefService;
12
13 namespace metrics {
14
15 // Register prefs relating to metrics reporting state. Currently only registers
16 // a pref for metrics reporting default opt-in state.
17 void RegisterMetricsReportingStatePrefs(PrefRegistrySimple* registry);
18
19 // Sets whether metrics reporting was opt-in or not. If it was opt-in, then the
20 // enable checkbox on first-run was default unchecked. If it was opt-out, then
21 // the checkbox was default checked. This should only be set once, and only
22 // during first-run.
23 void RecordMetricsReportingDefaultOptIn(PrefService* local_state, bool opt_in);
24
25 // Gets information about the default value for the enable metrics reporting
26 // checkbox shown during first-run.
27 MetricsServiceClient::EnableMetricsDefault GetMetricsReportingDefaultOptIn(
28 PrefService* local_state);
29
30 } // namespace metrics
31
32 #endif // COMPONENTS_METRICS_METRICS_REPORTING_DEFAULT_STATE_H_
OLDNEW
« no previous file with comments | « components/metrics/metrics_pref_names.cc ('k') | components/metrics/metrics_reporting_default_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698