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 1818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1829 kOsWin | kOsLinux | kOsCrOS, | 1829 kOsWin | kOsLinux | kOsCrOS, |
1830 SINGLE_VALUE_TYPE(switches::kEnableSavePasswordBubble) | 1830 SINGLE_VALUE_TYPE(switches::kEnableSavePasswordBubble) |
1831 }, | 1831 }, |
1832 #if defined(GOOGLE_CHROME_BUILD) | 1832 #if defined(GOOGLE_CHROME_BUILD) |
1833 { | 1833 { |
1834 "enable-easy-unlock", | 1834 "enable-easy-unlock", |
1835 IDS_FLAGS_ENABLE_EASY_UNLOCK_NAME, | 1835 IDS_FLAGS_ENABLE_EASY_UNLOCK_NAME, |
1836 IDS_FLAGS_ENABLE_EASY_UNLOCK_DESCRIPTION, | 1836 IDS_FLAGS_ENABLE_EASY_UNLOCK_DESCRIPTION, |
1837 kOsCrOS, | 1837 kOsCrOS, |
1838 SINGLE_VALUE_TYPE(switches::kEnableEasyUnlock) | 1838 SINGLE_VALUE_TYPE(switches::kEnableEasyUnlock) |
1839 } | 1839 }, |
1840 #endif | 1840 #endif |
| 1841 { |
| 1842 "enable-embedded-shared-worker", |
| 1843 IDS_FLAGS_ENABLE_EMBEDDED_SHARED_WORKER_NAME, |
| 1844 IDS_FLAGS_ENABLE_EMBEDDED_SHARED_WORKER_DESCRIPTION, |
| 1845 kOsDesktop, |
| 1846 SINGLE_VALUE_TYPE(switches::kEnableEmbeddedSharedWorker) |
| 1847 }, |
1841 }; | 1848 }; |
1842 | 1849 |
1843 const Experiment* experiments = kExperiments; | 1850 const Experiment* experiments = kExperiments; |
1844 size_t num_experiments = arraysize(kExperiments); | 1851 size_t num_experiments = arraysize(kExperiments); |
1845 | 1852 |
1846 // Stores and encapsulates the little state that about:flags has. | 1853 // Stores and encapsulates the little state that about:flags has. |
1847 class FlagsState { | 1854 class FlagsState { |
1848 public: | 1855 public: |
1849 FlagsState() : needs_restart_(false) {} | 1856 FlagsState() : needs_restart_(false) {} |
1850 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, | 1857 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, |
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2355 } | 2362 } |
2356 | 2363 |
2357 const Experiment* GetExperiments(size_t* count) { | 2364 const Experiment* GetExperiments(size_t* count) { |
2358 *count = num_experiments; | 2365 *count = num_experiments; |
2359 return experiments; | 2366 return experiments; |
2360 } | 2367 } |
2361 | 2368 |
2362 } // namespace testing | 2369 } // namespace testing |
2363 | 2370 |
2364 } // namespace about_flags | 2371 } // namespace about_flags |
OLD | NEW |