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 1829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1840 kOsWin | kOsLinux | kOsCrOS, | 1840 kOsWin | kOsLinux | kOsCrOS, |
1841 SINGLE_VALUE_TYPE(switches::kEnableSavePasswordBubble) | 1841 SINGLE_VALUE_TYPE(switches::kEnableSavePasswordBubble) |
1842 }, | 1842 }, |
1843 #if defined(GOOGLE_CHROME_BUILD) | 1843 #if defined(GOOGLE_CHROME_BUILD) |
1844 { | 1844 { |
1845 "enable-easy-unlock", | 1845 "enable-easy-unlock", |
1846 IDS_FLAGS_ENABLE_EASY_UNLOCK_NAME, | 1846 IDS_FLAGS_ENABLE_EASY_UNLOCK_NAME, |
1847 IDS_FLAGS_ENABLE_EASY_UNLOCK_DESCRIPTION, | 1847 IDS_FLAGS_ENABLE_EASY_UNLOCK_DESCRIPTION, |
1848 kOsCrOS, | 1848 kOsCrOS, |
1849 SINGLE_VALUE_TYPE(switches::kEnableEasyUnlock) | 1849 SINGLE_VALUE_TYPE(switches::kEnableEasyUnlock) |
| 1850 }, |
| 1851 #endif |
| 1852 #if defined(OS_MACOSX) |
| 1853 { |
| 1854 "apps-keep-chrome-alive", |
| 1855 IDS_FLAGS_APPS_KEEP_CHROME_ALIVE_NAME, |
| 1856 IDS_FLAGS_APPS_KEEP_CHROME_ALIVE_DESCRIPTION, |
| 1857 kOsMac, |
| 1858 SINGLE_VALUE_TYPE(switches::kAppsKeepChromeAlive) |
1850 } | 1859 } |
1851 #endif | 1860 #endif |
1852 }; | 1861 }; |
1853 | 1862 |
1854 const Experiment* experiments = kExperiments; | 1863 const Experiment* experiments = kExperiments; |
1855 size_t num_experiments = arraysize(kExperiments); | 1864 size_t num_experiments = arraysize(kExperiments); |
1856 | 1865 |
1857 // Stores and encapsulates the little state that about:flags has. | 1866 // Stores and encapsulates the little state that about:flags has. |
1858 class FlagsState { | 1867 class FlagsState { |
1859 public: | 1868 public: |
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2366 } | 2375 } |
2367 | 2376 |
2368 const Experiment* GetExperiments(size_t* count) { | 2377 const Experiment* GetExperiments(size_t* count) { |
2369 *count = num_experiments; | 2378 *count = num_experiments; |
2370 return experiments; | 2379 return experiments; |
2371 } | 2380 } |
2372 | 2381 |
2373 } // namespace testing | 2382 } // namespace testing |
2374 | 2383 |
2375 } // namespace about_flags | 2384 } // namespace about_flags |
OLD | NEW |