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 <algorithm> | 7 #include <algorithm> |
8 #include <iterator> | 8 #include <iterator> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 1498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1509 MULTI_VALUE_TYPE(kTabCaptureUpscaleQualityChoices) | 1509 MULTI_VALUE_TYPE(kTabCaptureUpscaleQualityChoices) |
1510 }, | 1510 }, |
1511 { | 1511 { |
1512 "tab-capture-downscale-quality", | 1512 "tab-capture-downscale-quality", |
1513 IDS_FLAGS_TAB_CAPTURE_DOWNSCALE_QUALITY_NAME, | 1513 IDS_FLAGS_TAB_CAPTURE_DOWNSCALE_QUALITY_NAME, |
1514 IDS_FLAGS_TAB_CAPTURE_DOWNSCALE_QUALITY_DESCRIPTION, | 1514 IDS_FLAGS_TAB_CAPTURE_DOWNSCALE_QUALITY_DESCRIPTION, |
1515 kOsAll, | 1515 kOsAll, |
1516 MULTI_VALUE_TYPE(kTabCaptureDownscaleQualityChoices) | 1516 MULTI_VALUE_TYPE(kTabCaptureDownscaleQualityChoices) |
1517 }, | 1517 }, |
1518 #endif | 1518 #endif |
| 1519 { |
| 1520 "enable-webgl-draft-extensions", |
| 1521 IDS_FLAGS_ENABLE_WEBGL_DRAFT_EXTENSIONS_NAME, |
| 1522 IDS_FLAGS_ENABLE_WEBGL_DRAFT_EXTENSIONS_DESCRIPTION, |
| 1523 kOsAll, |
| 1524 SINGLE_VALUE_TYPE(switches::kEnableWebGLDraftExtensions) |
| 1525 }, |
1519 }; | 1526 }; |
1520 | 1527 |
1521 const Experiment* experiments = kExperiments; | 1528 const Experiment* experiments = kExperiments; |
1522 size_t num_experiments = arraysize(kExperiments); | 1529 size_t num_experiments = arraysize(kExperiments); |
1523 | 1530 |
1524 // Stores and encapsulates the little state that about:flags has. | 1531 // Stores and encapsulates the little state that about:flags has. |
1525 class FlagsState { | 1532 class FlagsState { |
1526 public: | 1533 public: |
1527 FlagsState() : needs_restart_(false) {} | 1534 FlagsState() : needs_restart_(false) {} |
1528 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 1535 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2013 } | 2020 } |
2014 | 2021 |
2015 const Experiment* GetExperiments(size_t* count) { | 2022 const Experiment* GetExperiments(size_t* count) { |
2016 *count = num_experiments; | 2023 *count = num_experiments; |
2017 return experiments; | 2024 return experiments; |
2018 } | 2025 } |
2019 | 2026 |
2020 } // namespace testing | 2027 } // namespace testing |
2021 | 2028 |
2022 } // namespace about_flags | 2029 } // namespace about_flags |
OLD | NEW |