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 1859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1870 switches::kDisableTextInputFocusManager) | 1870 switches::kDisableTextInputFocusManager) |
1871 }, | 1871 }, |
1872 #endif | 1872 #endif |
1873 { | 1873 { |
1874 "extension-active-script-permission", | 1874 "extension-active-script-permission", |
1875 IDS_FLAGS_USER_CONSENT_FOR_EXTENSION_SCRIPTS_NAME, | 1875 IDS_FLAGS_USER_CONSENT_FOR_EXTENSION_SCRIPTS_NAME, |
1876 IDS_FLAGS_USER_CONSENT_FOR_EXTENSION_SCRIPTS_DESCRIPTION, | 1876 IDS_FLAGS_USER_CONSENT_FOR_EXTENSION_SCRIPTS_DESCRIPTION, |
1877 kOsAll, | 1877 kOsAll, |
1878 SINGLE_VALUE_TYPE(extensions::switches::kEnableScriptsRequireAction) | 1878 SINGLE_VALUE_TYPE(extensions::switches::kEnableScriptsRequireAction) |
1879 }, | 1879 }, |
| 1880 { |
| 1881 "enable-harfbuzz-rendertext", |
| 1882 IDS_FLAGS_ENABLE_HARFBUZZ_RENDERTEXT_NAME, |
| 1883 IDS_FLAGS_ENABLE_HARFBUZZ_RENDERTEXT_DESCRIPTION, |
| 1884 kOsDesktop, |
| 1885 SINGLE_VALUE_TYPE(switches::kEnableHarfBuzzRenderText) |
| 1886 }, |
1880 }; | 1887 }; |
1881 | 1888 |
1882 const Experiment* experiments = kExperiments; | 1889 const Experiment* experiments = kExperiments; |
1883 size_t num_experiments = arraysize(kExperiments); | 1890 size_t num_experiments = arraysize(kExperiments); |
1884 | 1891 |
1885 // Stores and encapsulates the little state that about:flags has. | 1892 // Stores and encapsulates the little state that about:flags has. |
1886 class FlagsState { | 1893 class FlagsState { |
1887 public: | 1894 public: |
1888 FlagsState() : needs_restart_(false) {} | 1895 FlagsState() : needs_restart_(false) {} |
1889 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, | 1896 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, |
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2390 } | 2397 } |
2391 | 2398 |
2392 const Experiment* GetExperiments(size_t* count) { | 2399 const Experiment* GetExperiments(size_t* count) { |
2393 *count = num_experiments; | 2400 *count = num_experiments; |
2394 return experiments; | 2401 return experiments; |
2395 } | 2402 } |
2396 | 2403 |
2397 } // namespace testing | 2404 } // namespace testing |
2398 | 2405 |
2399 } // namespace about_flags | 2406 } // namespace about_flags |
OLD | NEW |