Home | History | Annotate | Download | only in options
      1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #ifndef CHROME_BROWSER_UI_OPTIONS_OPTIONS_UTIL_H_
      6 #define CHROME_BROWSER_UI_OPTIONS_OPTIONS_UTIL_H_
      7 #pragma once
      8 
      9 #include "base/basictypes.h"
     10 
     11 class Profile;
     12 
     13 class OptionsUtil {
     14  public:
     15   // TODO(kmadhusu): Remove "ResetToDefaults" function after platform-specific
     16   // dialogs are removed.
     17   // Resets all prefs to their default values.
     18   static void ResetToDefaults(Profile* profile);
     19 
     20   // Try to make the the crash stats consent and the metrics upload
     21   // permission match |enabled|, returns the actual enabled setting.
     22   static bool ResolveMetricsReportingEnabled(bool enabled);
     23 
     24  private:
     25   DISALLOW_IMPLICIT_CONSTRUCTORS(OptionsUtil);
     26 };
     27 
     28 #endif  // CHROME_BROWSER_UI_OPTIONS_OPTIONS_UTIL_H_
     29