OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 // IDS_FLAGS_WEBGL_DESCRIPTION, | 156 // IDS_FLAGS_WEBGL_DESCRIPTION, |
157 // kOsAll, | 157 // kOsAll, |
158 // switches::kDisableExperimentalWebGL | 158 // switches::kDisableExperimentalWebGL |
159 // } | 159 // } |
160 //{ | 160 //{ |
161 // "print-preview", // Do not change; see above | 161 // "print-preview", // Do not change; see above |
162 // IDS_FLAGS_PRINT_PREVIEW_NAME, | 162 // IDS_FLAGS_PRINT_PREVIEW_NAME, |
163 // IDS_FLAGS_PRINT_PREVIEW_DESCRIPTION, | 163 // IDS_FLAGS_PRINT_PREVIEW_DESCRIPTION, |
164 // kOsAll, | 164 // kOsAll, |
165 // switches::kEnablePrintPreview | 165 // switches::kEnablePrintPreview |
166 //} | 166 //}, |
| 167 { |
| 168 "click-to-play", // Do not change; see above. |
| 169 IDS_FLAGS_CLICK_TO_PLAY_NAME, |
| 170 IDS_FLAGS_CLICK_TO_PLAY_DESCRIPTION, |
| 171 kOsAll, |
| 172 switches::kEnableClickToPlay |
| 173 }, |
167 }; | 174 }; |
168 | 175 |
169 const Experiment* experiments = kExperiments; | 176 const Experiment* experiments = kExperiments; |
170 size_t num_experiments = arraysize(kExperiments); | 177 size_t num_experiments = arraysize(kExperiments); |
171 | 178 |
172 // Stores and encapsulates the little state that about:flags has. | 179 // Stores and encapsulates the little state that about:flags has. |
173 class FlagsState { | 180 class FlagsState { |
174 public: | 181 public: |
175 FlagsState() : needs_restart_(false) {} | 182 FlagsState() : needs_restart_(false) {} |
176 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 183 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 num_experiments = arraysize(kExperiments); | 456 num_experiments = arraysize(kExperiments); |
450 } else { | 457 } else { |
451 experiments = e; | 458 experiments = e; |
452 num_experiments = count; | 459 num_experiments = count; |
453 } | 460 } |
454 } | 461 } |
455 | 462 |
456 } // namespace testing | 463 } // namespace testing |
457 | 464 |
458 } // namespace about_flags | 465 } // namespace about_flags |
OLD | NEW |