diff options
Diffstat (limited to 'chrome/browser/options_util.h')
-rw-r--r-- | chrome/browser/options_util.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/chrome/browser/options_util.h b/chrome/browser/options_util.h new file mode 100644 index 0000000..9bfc6fc --- /dev/null +++ b/chrome/browser/options_util.h @@ -0,0 +1,25 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROME_BROWSER_OPTIONS_UTIL_H_ +#define CHROME_BROWSER_OPTIONS_UTIL_H_ + +#include "base/basictypes.h" + +class Profile; + +class OptionsUtil { + public: + // 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); + + private: + DISALLOW_IMPLICIT_CONSTRUCTORS(OptionsUtil); +}; + +#endif // CHROME_BROWSER_OPTIONS_UTIL_H_ |