| 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 1797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1808 #if defined(OS_ANDROID) | 1808 #if defined(OS_ANDROID) |
| 1809 { | 1809 { |
| 1810 "disable-click-delay", | 1810 "disable-click-delay", |
| 1811 IDS_FLAGS_DISABLE_CLICK_DELAY_NAME, | 1811 IDS_FLAGS_DISABLE_CLICK_DELAY_NAME, |
| 1812 IDS_FLAGS_DISABLE_CLICK_DELAY_DESCRIPTION, | 1812 IDS_FLAGS_DISABLE_CLICK_DELAY_DESCRIPTION, |
| 1813 kOsAndroid, | 1813 kOsAndroid, |
| 1814 // Java-only switch: CommandLine.DISABLE_CLICK_DELAY | 1814 // Java-only switch: CommandLine.DISABLE_CLICK_DELAY |
| 1815 SINGLE_VALUE_TYPE("disable-click-delay") | 1815 SINGLE_VALUE_TYPE("disable-click-delay") |
| 1816 }, | 1816 }, |
| 1817 #endif | 1817 #endif |
| 1818 { |
| 1819 "enable-translate-new-ux", |
| 1820 IDS_FLAGS_ENABLE_TRANSLATE_NEW_UX_NAME, |
| 1821 IDS_FLAGS_ENABLE_TRANSLATE_NEW_UX_DESCRIPTION, |
| 1822 kOsDesktop, |
| 1823 SINGLE_VALUE_TYPE(switches::kEnableTranslateNewUX) |
| 1824 }, |
| 1818 }; | 1825 }; |
| 1819 | 1826 |
| 1820 const Experiment* experiments = kExperiments; | 1827 const Experiment* experiments = kExperiments; |
| 1821 size_t num_experiments = arraysize(kExperiments); | 1828 size_t num_experiments = arraysize(kExperiments); |
| 1822 | 1829 |
| 1823 // Stores and encapsulates the little state that about:flags has. | 1830 // Stores and encapsulates the little state that about:flags has. |
| 1824 class FlagsState { | 1831 class FlagsState { |
| 1825 public: | 1832 public: |
| 1826 FlagsState() : needs_restart_(false) {} | 1833 FlagsState() : needs_restart_(false) {} |
| 1827 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, | 1834 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2308 } | 2315 } |
| 2309 | 2316 |
| 2310 const Experiment* GetExperiments(size_t* count) { | 2317 const Experiment* GetExperiments(size_t* count) { |
| 2311 *count = num_experiments; | 2318 *count = num_experiments; |
| 2312 return experiments; | 2319 return experiments; |
| 2313 } | 2320 } |
| 2314 | 2321 |
| 2315 } // namespace testing | 2322 } // namespace testing |
| 2316 | 2323 |
| 2317 } // namespace about_flags | 2324 } // namespace about_flags |
| OLD | NEW |