| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // An identifier for an Options Tab page. These are treated as indices into | |
| 12 // the list of available tabs to be displayed. PAGE_DEFAULT means select the | |
| 13 // last tab viewed when the Options window was opened, or PAGE_GENERAL if the | |
| 14 // Options was never opened. | |
| 15 enum OptionsPage { | |
| 16 OPTIONS_PAGE_DEFAULT = -1, | |
| 17 #if defined(OS_CHROMEOS) | |
| 18 OPTIONS_PAGE_SYSTEM, | |
| 19 OPTIONS_PAGE_INTERNET, | |
| 20 #endif | |
| 21 OPTIONS_PAGE_GENERAL, | |
| 22 OPTIONS_PAGE_CONTENT, | |
| 23 OPTIONS_PAGE_ADVANCED, | |
| 24 OPTIONS_PAGE_COUNT | |
| 25 }; | |
| 26 | |
| 27 class OptionsUtil { | 11 class OptionsUtil { |
| 28 public: | 12 public: |
| 29 // Try to make the the crash stats consent and the metrics upload | 13 // Try to make the the crash stats consent and the metrics upload |
| 30 // permission match |enabled|, returns the actual enabled setting. | 14 // permission match |enabled|, returns the actual enabled setting. |
| 31 static bool ResolveMetricsReportingEnabled(bool enabled); | 15 static bool ResolveMetricsReportingEnabled(bool enabled); |
| 32 | 16 |
| 33 private: | 17 private: |
| 34 DISALLOW_IMPLICIT_CONSTRUCTORS(OptionsUtil); | 18 DISALLOW_IMPLICIT_CONSTRUCTORS(OptionsUtil); |
| 35 }; | 19 }; |
| 36 | 20 |
| 37 #endif // CHROME_BROWSER_UI_OPTIONS_OPTIONS_UTIL_H_ | 21 #endif // CHROME_BROWSER_UI_OPTIONS_OPTIONS_UTIL_H_ |
| OLD | NEW |