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