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 <iterator> | 7 #include <iterator> |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <utility> | 10 #include <utility> |
(...skipping 1991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2002 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableAppWindowCycling, | 2002 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableAppWindowCycling, |
2003 switches::kDisableAppWindowCycling)}, | 2003 switches::kDisableAppWindowCycling)}, |
2004 #endif | 2004 #endif |
2005 #if defined(ENABLE_WEBVR) | 2005 #if defined(ENABLE_WEBVR) |
2006 {"enable-webvr", | 2006 {"enable-webvr", |
2007 IDS_FLAGS_ENABLE_WEBVR_NAME, | 2007 IDS_FLAGS_ENABLE_WEBVR_NAME, |
2008 IDS_FLAGS_ENABLE_WEBVR_DESCRIPTION, | 2008 IDS_FLAGS_ENABLE_WEBVR_DESCRIPTION, |
2009 kOsAll, | 2009 kOsAll, |
2010 SINGLE_VALUE_TYPE(switches::kEnableWebVR)}, | 2010 SINGLE_VALUE_TYPE(switches::kEnableWebVR)}, |
2011 #endif | 2011 #endif |
| 2012 #if defined(OS_CHROMEOS) |
| 2013 {"enable-accelerated-mjpeg-decode", |
| 2014 IDS_FLAGS_ENABLE_ACCELERATED_MJPEG_DECODE_NAME, |
| 2015 IDS_FLAGS_ENABLE_ACCELERATED_MJPEG_DECODE_DESCRIPTION, |
| 2016 kOsCrOS, |
| 2017 SINGLE_VALUE_TYPE(switches::kEnableAcceleratedMjpegDecode)}, |
| 2018 #endif // OS_CHROMEOS |
2012 // NOTE: Adding new command-line switches requires adding corresponding | 2019 // NOTE: Adding new command-line switches requires adding corresponding |
2013 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2020 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
2014 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2021 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
2015 }; | 2022 }; |
2016 | 2023 |
2017 const Experiment* experiments = kExperiments; | 2024 const Experiment* experiments = kExperiments; |
2018 size_t num_experiments = arraysize(kExperiments); | 2025 size_t num_experiments = arraysize(kExperiments); |
2019 | 2026 |
2020 // Stores and encapsulates the little state that about:flags has. | 2027 // Stores and encapsulates the little state that about:flags has. |
2021 class FlagsState { | 2028 class FlagsState { |
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2635 } | 2642 } |
2636 | 2643 |
2637 const Experiment* GetExperiments(size_t* count) { | 2644 const Experiment* GetExperiments(size_t* count) { |
2638 *count = num_experiments; | 2645 *count = num_experiments; |
2639 return experiments; | 2646 return experiments; |
2640 } | 2647 } |
2641 | 2648 |
2642 } // namespace testing | 2649 } // namespace testing |
2643 | 2650 |
2644 } // namespace about_flags | 2651 } // namespace about_flags |
OLD | NEW |