blob: 1a808ed493410901ddad227cd06fb339ac9b16eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_METRICS_METRICS_SWITCHES_H_
#define COMPONENTS_METRICS_METRICS_SWITCHES_H_
#include "base/command_line.h"
namespace metrics {
namespace switches {
// Alphabetical list of switches specific to the metrics component. Document
// each in the .cc file.
extern const char kForceEnableMetricsReporting[];
extern const char kMetricsRecordingOnly[];
extern const char kMetricsUploadIntervalSec[];
extern const char kResetVariationState[];
extern const char kUkmServerUrl[];
extern const char kUmaServerUrl[];
extern const char kUmaInsecureServerUrl[];
} // namespace switches
// Returns true if kMetricsRecordingOnly is on the command line for the current
// process.
bool IsMetricsRecordingOnlyEnabled();
// Returns true if kForceEnableMetricsReporting is on the command line for the
// current process.
bool IsMetricsReportingForceEnabled();
// Adds kMetricsRecordingOnly to |command_line| if not already present.
void EnableMetricsRecordingOnlyForTesting(
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess());
// Adds kForceEnableMetricsReporting to |command_line| if not already present.
void ForceEnableMetricsReportingForTesting(
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess());
} // namespace metrics
#endif // COMPONENTS_METRICS_METRICS_SWITCHES_H_
|