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 4acd11f880b651b57dec1fc516600e48b3e33c7b..e74398c049e9eb951db31760c05c4898f1a594e4 100644 |
--- a/chrome/browser/ui/webui/options/browser_options_handler.h |
+++ b/chrome/browser/ui/webui/options/browser_options_handler.h |
@@ -379,7 +379,9 @@ class BrowserOptionsHandler |
void MetricsReportingChangeCallback(bool enabled); |
// Calls a Javascript function to set the state of MetricsReporting checkbox. |
- void SetMetricsReportingCheckbox(bool checked, bool disabled); |
+ void SetMetricsReportingCheckbox(bool checked, |
+ bool policy_managed, |
+ bool owner_managed); |
#if defined(OS_CHROMEOS) |
// Setup the accessibility features for ChromeOS. |
@@ -390,6 +392,10 @@ class BrowserOptionsHandler |
// correspond to the status of sync. |
scoped_ptr<base::DictionaryValue> GetSyncStateDictionary(); |
+ // Checks whether metrics reporting is controlled by the device owner which is |
+ // not the current user for ChromeOS. Returns false for the other platforms. |
+ bool IsMetricsReportingOwnerManaged(); |
+ |
scoped_refptr<ShellIntegration::DefaultBrowserWorker> default_browser_worker_; |
bool page_initialized_; |