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 #include "chrome/browser/about_flags.h" | 5 #include "chrome/browser/about_flags.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <iterator> | 8 #include <iterator> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 kOsAll, | 153 kOsAll, |
154 SINGLE_VALUE_TYPE(switches::kShowCompositedLayerBorders) | 154 SINGLE_VALUE_TYPE(switches::kShowCompositedLayerBorders) |
155 }, | 155 }, |
156 { | 156 { |
157 "show-fps-counter", | 157 "show-fps-counter", |
158 IDS_FLAGS_SHOW_FPS_COUNTER, | 158 IDS_FLAGS_SHOW_FPS_COUNTER, |
159 IDS_FLAGS_SHOW_FPS_COUNTER_DESCRIPTION, | 159 IDS_FLAGS_SHOW_FPS_COUNTER_DESCRIPTION, |
160 kOsAll, | 160 kOsAll, |
161 SINGLE_VALUE_TYPE(switches::kShowFPSCounter) | 161 SINGLE_VALUE_TYPE(switches::kShowFPSCounter) |
162 }, | 162 }, |
163 { | |
164 "gpu-canvas-2d", // FLAGS:RECORD_UMA | |
165 IDS_FLAGS_ACCELERATED_CANVAS_2D_NAME, | |
166 IDS_FLAGS_ACCELERATED_CANVAS_2D_DESCRIPTION, | |
167 kOsWin | kOsLinux | kOsCrOS, | |
168 SINGLE_VALUE_TYPE(switches::kEnableAccelerated2dCanvas) | |
169 }, | |
170 #if !defined(GOOGLE_CHROME_BUILD) | 163 #if !defined(GOOGLE_CHROME_BUILD) |
171 // Only expose this for Chromium builds where users may not have the PDF | 164 // Only expose this for Chromium builds where users may not have the PDF |
172 // plugin. Do not give Google Chrome users the option to disable it here. | 165 // plugin. Do not give Google Chrome users the option to disable it here. |
173 { | 166 { |
174 "print-preview", // FLAGS:RECORD_UMA | 167 "print-preview", // FLAGS:RECORD_UMA |
175 IDS_FLAGS_PRINT_PREVIEW_NAME, | 168 IDS_FLAGS_PRINT_PREVIEW_NAME, |
176 IDS_FLAGS_PRINT_PREVIEW_DESCRIPTION, | 169 IDS_FLAGS_PRINT_PREVIEW_DESCRIPTION, |
177 kOsMac | kOsWin | kOsLinux, // This switch is not available in CrOS. | 170 kOsMac | kOsWin | kOsLinux, // This switch is not available in CrOS. |
178 SINGLE_VALUE_TYPE(switches::kEnablePrintPreview) | 171 SINGLE_VALUE_TYPE(switches::kEnablePrintPreview) |
179 }, | 172 }, |
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
760 } | 753 } |
761 | 754 |
762 const Experiment* GetExperiments(size_t* count) { | 755 const Experiment* GetExperiments(size_t* count) { |
763 *count = num_experiments; | 756 *count = num_experiments; |
764 return experiments; | 757 return experiments; |
765 } | 758 } |
766 | 759 |
767 } // namespace testing | 760 } // namespace testing |
768 | 761 |
769 } // namespace about_flags | 762 } // namespace about_flags |
OLD | NEW |