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

Unified Diff: chrome/browser/metrics/metrics_reporting_state.h

Issue 1411863002: Use kMetricsReportingEnabled instead of kStatsReporingPref on metrics side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add default value for device setting Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/metrics/metrics_reporting_state.h
diff --git a/chrome/browser/metrics/metrics_reporting_state.h b/chrome/browser/metrics/metrics_reporting_state.h
index 4716929571f674c31041ecd4567a10e1b4b4f2bb..d45fa5fe7bc20f9ce33332d8aafbc678ad13296e 100644
--- a/chrome/browser/metrics/metrics_reporting_state.h
+++ b/chrome/browser/metrics/metrics_reporting_state.h
@@ -19,8 +19,12 @@ void InitiateMetricsReportingChange(
bool enabled,
const OnMetricsReportingCallbackType& callback_fn);
-// Returns whether MetricsReporting can be modified by the user (except CrOS and
+// Returns whether MetricsReporting can be modified by the user (except
// Android).
-bool IsMetricsReportingUserChangable();
+bool IsMetricsReportingPolicyManaged();
+
+// Initialize kMetricsReportingEnabled based on kStatsReportingPref device
+// setting and add an observer as it is the source of truth on Chrome OS.
+void SetupMetricsStateForChromeOS();
#endif // CHROME_BROWSER_METRICS_METRICS_REPORTING_STATE_H_
« no previous file with comments | « chrome/browser/metrics/chrome_metrics_services_manager_client.cc ('k') | chrome/browser/metrics/metrics_reporting_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698