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 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
436 SINGLE_VALUE_TYPE(switches::kEnablePhotoEditor) | 436 SINGLE_VALUE_TYPE(switches::kEnablePhotoEditor) |
437 }, | 437 }, |
438 #endif | 438 #endif |
439 { | 439 { |
440 "enable-media-source", | 440 "enable-media-source", |
441 IDS_FLAGS_ENABLE_MEDIA_SOURCE_NAME, | 441 IDS_FLAGS_ENABLE_MEDIA_SOURCE_NAME, |
442 IDS_FLAGS_ENABLE_MEDIA_SOURCE_DESCRIPTION, | 442 IDS_FLAGS_ENABLE_MEDIA_SOURCE_DESCRIPTION, |
443 kOsAll, | 443 kOsAll, |
444 SINGLE_VALUE_TYPE(switches::kEnableMediaSource) | 444 SINGLE_VALUE_TYPE(switches::kEnableMediaSource) |
445 }, | 445 }, |
446 { | |
Aaron Boodman
2011/11/04 05:45:16
Keep in mind that once you put something in about:
| |
447 "platform-apps", | |
448 IDS_FLAGS_ENABLE_PLATFORM_APPS_NAME, | |
449 IDS_FLAGS_ENABLE_PLATFORM_APPS_DESCRIPTION, | |
450 kOsAll, | |
451 SINGLE_VALUE_TYPE(switches::kEnablePlatformApps) | |
452 }, | |
446 }; | 453 }; |
447 | 454 |
448 const Experiment* experiments = kExperiments; | 455 const Experiment* experiments = kExperiments; |
449 size_t num_experiments = arraysize(kExperiments); | 456 size_t num_experiments = arraysize(kExperiments); |
450 | 457 |
451 // Stores and encapsulates the little state that about:flags has. | 458 // Stores and encapsulates the little state that about:flags has. |
452 class FlagsState { | 459 class FlagsState { |
453 public: | 460 public: |
454 FlagsState() : needs_restart_(false) {} | 461 FlagsState() : needs_restart_(false) {} |
455 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 462 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
865 } | 872 } |
866 | 873 |
867 const Experiment* GetExperiments(size_t* count) { | 874 const Experiment* GetExperiments(size_t* count) { |
868 *count = num_experiments; | 875 *count = num_experiments; |
869 return experiments; | 876 return experiments; |
870 } | 877 } |
871 | 878 |
872 } // namespace testing | 879 } // namespace testing |
873 | 880 |
874 } // namespace about_flags | 881 } // namespace about_flags |
OLD | NEW |