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