| 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 1824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1835 SINGLE_VALUE_TYPE(switches::kEnableEmbeddedSearchAPI) | 1835 SINGLE_VALUE_TYPE(switches::kEnableEmbeddedSearchAPI) |
| 1836 }, | 1836 }, |
| 1837 { | 1837 { |
| 1838 "enable-app-install-alerts", | 1838 "enable-app-install-alerts", |
| 1839 IDS_FLAGS_ENABLE_APP_INSTALL_ALERTS_NAME, | 1839 IDS_FLAGS_ENABLE_APP_INSTALL_ALERTS_NAME, |
| 1840 IDS_FLAGS_ENABLE_APP_INSTALL_ALERTS_DESCRIPTION, | 1840 IDS_FLAGS_ENABLE_APP_INSTALL_ALERTS_DESCRIPTION, |
| 1841 kOsAndroid, | 1841 kOsAndroid, |
| 1842 SINGLE_VALUE_TYPE(switches::kEnableAppInstallAlerts) | 1842 SINGLE_VALUE_TYPE(switches::kEnableAppInstallAlerts) |
| 1843 }, | 1843 }, |
| 1844 #endif | 1844 #endif |
| 1845 #if defined(USE_AURA) |
| 1846 { |
| 1847 "text-input-focus-manager", |
| 1848 IDS_FLAGS_TEXT_INPUT_FOCUS_MANAGER_NAME, |
| 1849 IDS_FLAGS_TEXT_INPUT_FOCUS_MANAGER_DESCRIPTION, |
| 1850 kOsCrOS | kOsLinux | kOsWin, |
| 1851 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableTextInputFocusManager, |
| 1852 switches::kDisableTextInputFocusManager) |
| 1853 }, |
| 1854 #endif |
| 1845 }; | 1855 }; |
| 1846 | 1856 |
| 1847 const Experiment* experiments = kExperiments; | 1857 const Experiment* experiments = kExperiments; |
| 1848 size_t num_experiments = arraysize(kExperiments); | 1858 size_t num_experiments = arraysize(kExperiments); |
| 1849 | 1859 |
| 1850 // Stores and encapsulates the little state that about:flags has. | 1860 // Stores and encapsulates the little state that about:flags has. |
| 1851 class FlagsState { | 1861 class FlagsState { |
| 1852 public: | 1862 public: |
| 1853 FlagsState() : needs_restart_(false) {} | 1863 FlagsState() : needs_restart_(false) {} |
| 1854 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, | 1864 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, |
| (...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2359 } | 2369 } |
| 2360 | 2370 |
| 2361 const Experiment* GetExperiments(size_t* count) { | 2371 const Experiment* GetExperiments(size_t* count) { |
| 2362 *count = num_experiments; | 2372 *count = num_experiments; |
| 2363 return experiments; | 2373 return experiments; |
| 2364 } | 2374 } |
| 2365 | 2375 |
| 2366 } // namespace testing | 2376 } // namespace testing |
| 2367 | 2377 |
| 2368 } // namespace about_flags | 2378 } // namespace about_flags |
| OLD | NEW |