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 <iterator> | 7 #include <iterator> |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <utility> | 10 #include <utility> |
(...skipping 1778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1789 FEATURE_VALUE_TYPE(offline_pages::kOffliningRecentPagesFeature)}, | 1789 FEATURE_VALUE_TYPE(offline_pages::kOffliningRecentPagesFeature)}, |
1790 #endif // defined(OS_ANDROID) | 1790 #endif // defined(OS_ANDROID) |
1791 {"protect-sync-credential", IDS_FLAGS_PROTECT_SYNC_CREDENTIAL_NAME, | 1791 {"protect-sync-credential", IDS_FLAGS_PROTECT_SYNC_CREDENTIAL_NAME, |
1792 IDS_FLAGS_PROTECT_SYNC_CREDENTIAL_DESCRIPTION, kOsAll, | 1792 IDS_FLAGS_PROTECT_SYNC_CREDENTIAL_DESCRIPTION, kOsAll, |
1793 FEATURE_VALUE_TYPE(password_manager::features::kProtectSyncCredential)}, | 1793 FEATURE_VALUE_TYPE(password_manager::features::kProtectSyncCredential)}, |
1794 {"protect-sync-credential-on-reauth", | 1794 {"protect-sync-credential-on-reauth", |
1795 IDS_FLAGS_PROTECT_SYNC_CREDENTIAL_ON_REAUTH_NAME, | 1795 IDS_FLAGS_PROTECT_SYNC_CREDENTIAL_ON_REAUTH_NAME, |
1796 IDS_FLAGS_PROTECT_SYNC_CREDENTIAL_ON_REAUTH_DESCRIPTION, kOsAll, | 1796 IDS_FLAGS_PROTECT_SYNC_CREDENTIAL_ON_REAUTH_DESCRIPTION, kOsAll, |
1797 FEATURE_VALUE_TYPE( | 1797 FEATURE_VALUE_TYPE( |
1798 password_manager::features::kProtectSyncCredentialOnReauth)}, | 1798 password_manager::features::kProtectSyncCredentialOnReauth)}, |
| 1799 #if defined(OS_CHROMEOS) |
| 1800 {"enable-experimental-accessibility-features", |
| 1801 IDS_FLAGS_EXPERIMENTAL_ACCESSIBILITY_FEATURES_NAME, |
| 1802 IDS_FLAGS_EXPERIMENTAL_ACCESSIBILITY_FEATURES_DESCRIPTION, kOsCrOS, |
| 1803 SINGLE_VALUE_TYPE( |
| 1804 chromeos::switches::kEnableExperimentalAccessibilityFeatures)}, |
| 1805 #endif |
1799 // NOTE: Adding new command-line switches requires adding corresponding | 1806 // NOTE: Adding new command-line switches requires adding corresponding |
1800 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 1807 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
1801 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 1808 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
1802 }; | 1809 }; |
1803 | 1810 |
1804 class FlagsStateSingleton { | 1811 class FlagsStateSingleton { |
1805 public: | 1812 public: |
1806 FlagsStateSingleton() | 1813 FlagsStateSingleton() |
1807 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} | 1814 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} |
1808 ~FlagsStateSingleton() {} | 1815 ~FlagsStateSingleton() {} |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1998 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2005 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
1999 | 2006 |
2000 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2007 const FeatureEntry* GetFeatureEntries(size_t* count) { |
2001 *count = arraysize(kFeatureEntries); | 2008 *count = arraysize(kFeatureEntries); |
2002 return kFeatureEntries; | 2009 return kFeatureEntries; |
2003 } | 2010 } |
2004 | 2011 |
2005 } // namespace testing | 2012 } // namespace testing |
2006 | 2013 |
2007 } // namespace about_flags | 2014 } // namespace about_flags |
OLD | NEW |