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

Side by Side Diff: components/metrics_services_manager/metrics_services_manager_client.h

Issue 2861563002: Add an override flag to enable metrics reporting. (Closed)
Patch Set: Rebase Created 3 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_METRICS_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_CLIENT_H_ 5 #ifndef COMPONENTS_METRICS_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_CLIENT_H_
6 #define COMPONENTS_METRICS_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_CLIENT_H_ 6 #define COMPONENTS_METRICS_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_CLIENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 // Returns whether metrics reporting is enabled. 51 // Returns whether metrics reporting is enabled.
52 virtual bool IsMetricsReportingEnabled() = 0; 52 virtual bool IsMetricsReportingEnabled() = 0;
53 53
54 // Whether the metrics services should record but not report metrics. 54 // Whether the metrics services should record but not report metrics.
55 virtual bool OnlyDoMetricsRecording() = 0; 55 virtual bool OnlyDoMetricsRecording() = 0;
56 56
57 // Update the running state of metrics services managed by the embedder, for 57 // Update the running state of metrics services managed by the embedder, for
58 // example, crash reporting. 58 // example, crash reporting.
59 virtual void UpdateRunningServices(bool may_record, bool may_upload) {} 59 virtual void UpdateRunningServices(bool may_record, bool may_upload) {}
60
61 // If the user has forced metrics collection on via the override flag.
62 virtual bool IsMetricsReportingForceEnabled();
60 }; 63 };
61 64
62 } // namespace metrics_services_manager 65 } // namespace metrics_services_manager
63 66
64 #endif // COMPONENTS_METRICS_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_CLIENT_H _ 67 #endif // COMPONENTS_METRICS_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_CLIENT_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698