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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 kOsWin | kOsLinux, | 273 kOsWin | kOsLinux, |
274 SINGLE_VALUE_TYPE(switches::kInstantAutocompleteImmediately) | 274 SINGLE_VALUE_TYPE(switches::kInstantAutocompleteImmediately) |
275 }, | 275 }, |
276 { | 276 { |
277 "block-reading-third-party-cookies", | 277 "block-reading-third-party-cookies", |
278 IDS_FLAGS_BLOCK_ALL_THIRD_PARTY_COOKIES_NAME, | 278 IDS_FLAGS_BLOCK_ALL_THIRD_PARTY_COOKIES_NAME, |
279 IDS_FLAGS_BLOCK_ALL_THIRD_PARTY_COOKIES_DESCRIPTION, | 279 IDS_FLAGS_BLOCK_ALL_THIRD_PARTY_COOKIES_DESCRIPTION, |
280 kOsAll, | 280 kOsAll, |
281 SINGLE_VALUE_TYPE(switches::kBlockReadingThirdPartyCookies) | 281 SINGLE_VALUE_TYPE(switches::kBlockReadingThirdPartyCookies) |
282 }, | 282 }, |
| 283 { |
| 284 "webaudio", |
| 285 IDS_FLAGS_WEBAUDIO_NAME, |
| 286 IDS_FLAGS_WEBAUDIO_DESCRIPTION, |
| 287 kOsMac, // TODO(crogers): add windows and linux when FFT is ready. |
| 288 SINGLE_VALUE_TYPE(switches::kEnableWebAudio) |
| 289 }, |
283 }; | 290 }; |
284 | 291 |
285 const Experiment* experiments = kExperiments; | 292 const Experiment* experiments = kExperiments; |
286 size_t num_experiments = arraysize(kExperiments); | 293 size_t num_experiments = arraysize(kExperiments); |
287 | 294 |
288 // Stores and encapsulates the little state that about:flags has. | 295 // Stores and encapsulates the little state that about:flags has. |
289 class FlagsState { | 296 class FlagsState { |
290 public: | 297 public: |
291 FlagsState() : needs_restart_(false) {} | 298 FlagsState() : needs_restart_(false) {} |
292 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 299 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
690 } | 697 } |
691 | 698 |
692 const Experiment* GetExperiments(size_t* count) { | 699 const Experiment* GetExperiments(size_t* count) { |
693 *count = num_experiments; | 700 *count = num_experiments; |
694 return experiments; | 701 return experiments; |
695 } | 702 } |
696 | 703 |
697 } // namespace testing | 704 } // namespace testing |
698 | 705 |
699 } // namespace about_flags | 706 } // namespace about_flags |
OLD | NEW |