Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(623)

Side by Side Diff: chrome/browser/ui/options/options_util.h

Issue 6017002: DOMUI Settings: UTH: Remove the 'Reset to Defaults' button. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/resources/options/advanced_options.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_OPTIONS_OPTIONS_UTIL_H_ 5 #ifndef CHROME_BROWSER_UI_OPTIONS_OPTIONS_UTIL_H_
6 #define CHROME_BROWSER_UI_OPTIONS_OPTIONS_UTIL_H_ 6 #define CHROME_BROWSER_UI_OPTIONS_OPTIONS_UTIL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 10
11 class Profile; 11 class Profile;
12 12
13 class OptionsUtil { 13 class OptionsUtil {
14 public: 14 public:
15 // TODO(kmadhusu): Remove "ResetToDefaults" function after platform-specific
16 // dialogs are removed.
15 // Resets all prefs to their default values. 17 // Resets all prefs to their default values.
16 static void ResetToDefaults(Profile* profile); 18 static void ResetToDefaults(Profile* profile);
17 19
18 // Try to make the the crash stats consent and the metrics upload 20 // Try to make the the crash stats consent and the metrics upload
19 // permission match |enabled|, returns the actual enabled setting. 21 // permission match |enabled|, returns the actual enabled setting.
20 static bool ResolveMetricsReportingEnabled(bool enabled); 22 static bool ResolveMetricsReportingEnabled(bool enabled);
21 23
22 private: 24 private:
23 DISALLOW_IMPLICIT_CONSTRUCTORS(OptionsUtil); 25 DISALLOW_IMPLICIT_CONSTRUCTORS(OptionsUtil);
24 }; 26 };
25 27
26 #endif // CHROME_BROWSER_UI_OPTIONS_OPTIONS_UTIL_H_ 28 #endif // CHROME_BROWSER_UI_OPTIONS_OPTIONS_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/advanced_options.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698