| 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 1810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1821 kOsAll, | 1821 kOsAll, |
| 1822 SINGLE_VALUE_TYPE(extensions::switches::kEnableScriptsRequireAction) | 1822 SINGLE_VALUE_TYPE(extensions::switches::kEnableScriptsRequireAction) |
| 1823 }, | 1823 }, |
| 1824 { | 1824 { |
| 1825 "enable-harfbuzz-rendertext", | 1825 "enable-harfbuzz-rendertext", |
| 1826 IDS_FLAGS_ENABLE_HARFBUZZ_RENDERTEXT_NAME, | 1826 IDS_FLAGS_ENABLE_HARFBUZZ_RENDERTEXT_NAME, |
| 1827 IDS_FLAGS_ENABLE_HARFBUZZ_RENDERTEXT_DESCRIPTION, | 1827 IDS_FLAGS_ENABLE_HARFBUZZ_RENDERTEXT_DESCRIPTION, |
| 1828 kOsDesktop, | 1828 kOsDesktop, |
| 1829 SINGLE_VALUE_TYPE(switches::kEnableHarfBuzzRenderText) | 1829 SINGLE_VALUE_TYPE(switches::kEnableHarfBuzzRenderText) |
| 1830 }, | 1830 }, |
| 1831 #if defined(OS_ANDROID) |
| 1832 { |
| 1833 "enable-answers-in-suggest", |
| 1834 IDS_FLAGS_ENABLE_ANSWERS_IN_SUGGEST_NAME, |
| 1835 IDS_FLAGS_ENABLE_ANSWERS_IN_SUGGEST_DESCRIPTION, |
| 1836 kOsAndroid, |
| 1837 SINGLE_VALUE_TYPE(switches::kEnableAnswersInSuggest) |
| 1838 }, |
| 1839 #endif |
| 1831 }; | 1840 }; |
| 1832 | 1841 |
| 1833 const Experiment* experiments = kExperiments; | 1842 const Experiment* experiments = kExperiments; |
| 1834 size_t num_experiments = arraysize(kExperiments); | 1843 size_t num_experiments = arraysize(kExperiments); |
| 1835 | 1844 |
| 1836 // Stores and encapsulates the little state that about:flags has. | 1845 // Stores and encapsulates the little state that about:flags has. |
| 1837 class FlagsState { | 1846 class FlagsState { |
| 1838 public: | 1847 public: |
| 1839 FlagsState() : needs_restart_(false) {} | 1848 FlagsState() : needs_restart_(false) {} |
| 1840 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, | 1849 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, |
| (...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2341 } | 2350 } |
| 2342 | 2351 |
| 2343 const Experiment* GetExperiments(size_t* count) { | 2352 const Experiment* GetExperiments(size_t* count) { |
| 2344 *count = num_experiments; | 2353 *count = num_experiments; |
| 2345 return experiments; | 2354 return experiments; |
| 2346 } | 2355 } |
| 2347 | 2356 |
| 2348 } // namespace testing | 2357 } // namespace testing |
| 2349 | 2358 |
| 2350 } // namespace about_flags | 2359 } // namespace about_flags |
| OLD | NEW |