summaryrefslogtreecommitdiffstats
path: root/chrome/browser/options_util.h
diff options
context:
space:
mode:
authormattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-15 22:09:55 +0000
committermattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-15 22:09:55 +0000
commite301150ae6bcc8e3d3d660b81ad35be1278d3bf6 (patch)
treeb02bd3fce3687a9585989c12684cbaeb0146c5c9 /chrome/browser/options_util.h
parentb59ff376c5d5b950774fcbe65727611d51832b75 (diff)
downloadchromium_src-e301150ae6bcc8e3d3d660b81ad35be1278d3bf6.zip
chromium_src-e301150ae6bcc8e3d3d660b81ad35be1278d3bf6.tar.gz
chromium_src-e301150ae6bcc8e3d3d660b81ad35be1278d3bf6.tar.bz2
Move the ResolveMetricsReportingEnabled logic to OptionsUtil, make gtk options use it.
Only show the reporting checkbox in Google Chrome builds. Show the restart required message box when changing the reporting setting. BUG=11507 TEST=on Chromium build, option should not show up. On Google Chrome build in should show up, and enable both crash reporting and metrics settings. Review URL: http://codereview.chromium.org/149665 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20796 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/options_util.h')
-rw-r--r--chrome/browser/options_util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/options_util.h b/chrome/browser/options_util.h
index 2d9f827..bc9ee01 100644
--- a/chrome/browser/options_util.h
+++ b/chrome/browser/options_util.h
@@ -14,6 +14,10 @@ class OptionsUtil {
// Resets all prefs to their default values.
static void ResetToDefaults(Profile* profile);
+ // Try to make the the crash stats consent and the metrics upload
+ // permission match |enabled|, returns the actual enabled setting.
+ static bool ResolveMetricsReportingEnabled(bool enabled);
+
DISALLOW_IMPLICIT_CONSTRUCTORS(OptionsUtil);
};