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

Unified Diff: chrome/browser/ui/webui/options/browser_options_handler.h

Issue 506663003: Consolidates accessing and setting the UMA pref to be within metrics code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: android check removed Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/options/browser_options_handler.h
diff --git a/chrome/browser/ui/webui/options/browser_options_handler.h b/chrome/browser/ui/webui/options/browser_options_handler.h
index 9a79d55b37e3fef3e83aba61af4ed9ef8a407d7b..a0b78ee614f61cc4d7bdb067d4c6895a640d65a6 100644
--- a/chrome/browser/ui/webui/options/browser_options_handler.h
+++ b/chrome/browser/ui/webui/options/browser_options_handler.h
@@ -332,6 +332,20 @@ class BrowserOptionsHandler
// Setup the UI for showing which settings are extension controlled.
void SetupExtensionControlledIndicators();
+ // Setup the value and the disabled property for metrics reporting for (except
+ // CrOS and Android).
+ void SetupMetricsReportingCheckbox();
+
+ // Called when the MetricsReportingEnabled checkbox values are changed.
+ // |args| will contain the checkbox checked state as a boolean.
+ void HandleMetricsReportingChange(const base::ListValue* args);
+
+ // Notifies the result of MetricsReportingEnabled change to Javascript layer.
+ void MetricsReportingChangeCallback(bool enabled);
+
+ // Calls a Javascript function to set the state of MetricsReporting checkbox.
+ void SetMetricsReportingCheckbox(bool checked, bool disabled);
+
#if defined(OS_CHROMEOS)
// Setup the accessibility features for ChromeOS.
void SetupAccessibilityFeatures();
« no previous file with comments | « chrome/browser/ui/views/session_crashed_bubble_view.cc ('k') | chrome/browser/ui/webui/options/browser_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698