summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/options/options_util.h
blob: fb2b1833c5e1134842af5d998d4ec0570d7f2016 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// 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_UI_OPTIONS_OPTIONS_UTIL_H_
#define CHROME_BROWSER_UI_OPTIONS_OPTIONS_UTIL_H_
#pragma once

#include "base/basictypes.h"

class Profile;

class OptionsUtil {
 public:
  // TODO(kmadhusu): Remove "ResetToDefaults" function after platform-specific
  // dialogs are removed.
  // 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_UI_OPTIONS_OPTIONS_UTIL_H_