| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/browser/about_flags.h" | 5 #include "chrome/browser/about_flags.h" |
| 6 | 6 |
| 7 #include <iterator> | 7 #include <iterator> |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 2059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2070 SINGLE_VALUE_TYPE(switches::kEnableClearBrowsingDataCounters) | 2070 SINGLE_VALUE_TYPE(switches::kEnableClearBrowsingDataCounters) |
| 2071 }, | 2071 }, |
| 2072 #if defined(ENABLE_TASK_MANAGER) | 2072 #if defined(ENABLE_TASK_MANAGER) |
| 2073 {"enable-new-task-manager", | 2073 {"enable-new-task-manager", |
| 2074 IDS_FLAGS_ENABLE_NEW_TASK_MANAGER_NAME, | 2074 IDS_FLAGS_ENABLE_NEW_TASK_MANAGER_NAME, |
| 2075 IDS_FLAGS_ENABLE_NEW_TASK_MANAGER_DESCRIPTION, | 2075 IDS_FLAGS_ENABLE_NEW_TASK_MANAGER_DESCRIPTION, |
| 2076 kOsDesktop, | 2076 kOsDesktop, |
| 2077 SINGLE_VALUE_TYPE(switches::kEnableNewTaskManager) | 2077 SINGLE_VALUE_TYPE(switches::kEnableNewTaskManager) |
| 2078 }, | 2078 }, |
| 2079 #endif // defined(ENABLE_TASK_MANAGER) | 2079 #endif // defined(ENABLE_TASK_MANAGER) |
| 2080 {"simplified-fullscreen-ui", |
| 2081 IDS_FLAGS_SIMPLIFIED_FULLSCREEN_UI_NAME, |
| 2082 IDS_FLAGS_SIMPLIFIED_FULLSCREEN_UI_DESCRIPTION, |
| 2083 kOsDesktop, |
| 2084 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableSimplifiedFullscreenUI, |
| 2085 switches::kDisableSimplifiedFullscreenUI) |
| 2086 }, |
| 2080 // NOTE: Adding new command-line switches requires adding corresponding | 2087 // NOTE: Adding new command-line switches requires adding corresponding |
| 2081 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2088 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
| 2082 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2089 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
| 2083 }; | 2090 }; |
| 2084 | 2091 |
| 2085 const Experiment* experiments = kExperiments; | 2092 const Experiment* experiments = kExperiments; |
| 2086 size_t num_experiments = arraysize(kExperiments); | 2093 size_t num_experiments = arraysize(kExperiments); |
| 2087 | 2094 |
| 2088 // Stores and encapsulates the little state that about:flags has. | 2095 // Stores and encapsulates the little state that about:flags has. |
| 2089 class FlagsState { | 2096 class FlagsState { |
| (...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2712 } | 2719 } |
| 2713 | 2720 |
| 2714 const Experiment* GetExperiments(size_t* count) { | 2721 const Experiment* GetExperiments(size_t* count) { |
| 2715 *count = num_experiments; | 2722 *count = num_experiments; |
| 2716 return experiments; | 2723 return experiments; |
| 2717 } | 2724 } |
| 2718 | 2725 |
| 2719 } // namespace testing | 2726 } // namespace testing |
| 2720 | 2727 |
| 2721 } // namespace about_flags | 2728 } // namespace about_flags |
| OLD | NEW |