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 2032 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2043 #endif // defined(OS_CHROMEOS) | 2043 #endif // defined(OS_CHROMEOS) |
2044 #if defined(OS_ANDROID) | 2044 #if defined(OS_ANDROID) |
2045 { | 2045 { |
2046 "enable-seccomp-filter-sandbox", | 2046 "enable-seccomp-filter-sandbox", |
2047 IDS_FLAGS_ENABLE_SECCOMP_FILTER_SANDBOX_ANDROID_NAME, | 2047 IDS_FLAGS_ENABLE_SECCOMP_FILTER_SANDBOX_ANDROID_NAME, |
2048 IDS_FLAGS_ENABLE_SECCOMP_FILTER_SANDBOX_ANDROID_DESCRIPTION, | 2048 IDS_FLAGS_ENABLE_SECCOMP_FILTER_SANDBOX_ANDROID_DESCRIPTION, |
2049 kOsAndroid, | 2049 kOsAndroid, |
2050 SINGLE_VALUE_TYPE(switches::kEnableSeccompFilterSandbox) | 2050 SINGLE_VALUE_TYPE(switches::kEnableSeccompFilterSandbox) |
2051 }, | 2051 }, |
2052 #endif | 2052 #endif |
| 2053 { |
| 2054 "enable-touch-hover", |
| 2055 IDS_FLAGS_ENABLE_TOUCH_HOVER_NAME, |
| 2056 IDS_FLAGS_ENABLE_TOUCH_HOVER_DESCRIPTION, |
| 2057 kOsAndroid, |
| 2058 SINGLE_VALUE_TYPE("enable-touch-hover") |
| 2059 }, |
2053 | 2060 |
2054 // NOTE: Adding new command-line switches requires adding corresponding | 2061 // NOTE: Adding new command-line switches requires adding corresponding |
2055 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2062 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
2056 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2063 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
2057 }; | 2064 }; |
2058 | 2065 |
2059 const Experiment* experiments = kExperiments; | 2066 const Experiment* experiments = kExperiments; |
2060 size_t num_experiments = arraysize(kExperiments); | 2067 size_t num_experiments = arraysize(kExperiments); |
2061 | 2068 |
2062 // Stores and encapsulates the little state that about:flags has. | 2069 // Stores and encapsulates the little state that about:flags has. |
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2622 } | 2629 } |
2623 | 2630 |
2624 const Experiment* GetExperiments(size_t* count) { | 2631 const Experiment* GetExperiments(size_t* count) { |
2625 *count = num_experiments; | 2632 *count = num_experiments; |
2626 return experiments; | 2633 return experiments; |
2627 } | 2634 } |
2628 | 2635 |
2629 } // namespace testing | 2636 } // namespace testing |
2630 | 2637 |
2631 } // namespace about_flags | 2638 } // namespace about_flags |
OLD | NEW |