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 1766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1777 {"enable-webfonts-intervention-trigger", | 1777 {"enable-webfonts-intervention-trigger", |
1778 IDS_FLAGS_ENABLE_WEBFONTS_INTERVENTION_TRIGGER_NAME, | 1778 IDS_FLAGS_ENABLE_WEBFONTS_INTERVENTION_TRIGGER_NAME, |
1779 IDS_FLAGS_ENABLE_WEBFONTS_INTERVENTION_TRIGGER_DESCRIPTION, kOsAll, | 1779 IDS_FLAGS_ENABLE_WEBFONTS_INTERVENTION_TRIGGER_DESCRIPTION, kOsAll, |
1780 SINGLE_VALUE_TYPE(switches::kEnableWebFontsInterventionTrigger)}, | 1780 SINGLE_VALUE_TYPE(switches::kEnableWebFontsInterventionTrigger)}, |
1781 {"enable-grouped-history", IDS_FLAGS_ENABLE_GROUPED_HISTORY_NAME, | 1781 {"enable-grouped-history", IDS_FLAGS_ENABLE_GROUPED_HISTORY_NAME, |
1782 IDS_FLAGS_ENABLE_GROUPED_HISTORY_DESCRIPTION, kOsDesktop, | 1782 IDS_FLAGS_ENABLE_GROUPED_HISTORY_DESCRIPTION, kOsDesktop, |
1783 SINGLE_VALUE_TYPE(switches::kHistoryEnableGroupByDomain)}, | 1783 SINGLE_VALUE_TYPE(switches::kHistoryEnableGroupByDomain)}, |
1784 {"enable-token-binding", IDS_FLAGS_ENABLE_TOKEN_BINDING_NAME, | 1784 {"enable-token-binding", IDS_FLAGS_ENABLE_TOKEN_BINDING_NAME, |
1785 IDS_FLAGS_ENABLE_TOKEN_BINDING_DESCRIPTION, kOsAll, | 1785 IDS_FLAGS_ENABLE_TOKEN_BINDING_DESCRIPTION, kOsAll, |
1786 FEATURE_VALUE_TYPE(features::kTokenBinding)}, | 1786 FEATURE_VALUE_TYPE(features::kTokenBinding)}, |
| 1787 {"enable-scroll-anchoring", IDS_FLAGS_ENABLE_SCROLL_ANCHORING_NAME, |
| 1788 IDS_FLAGS_ENABLE_SCROLL_ANCHORING_DESCRIPTION, kOsAll, |
| 1789 FEATURE_VALUE_TYPE(features::kScrollAnchoring)}, |
1787 // NOTE: Adding new command-line switches requires adding corresponding | 1790 // NOTE: Adding new command-line switches requires adding corresponding |
1788 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 1791 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
1789 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 1792 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
1790 }; | 1793 }; |
1791 | 1794 |
1792 class FlagsStateSingleton { | 1795 class FlagsStateSingleton { |
1793 public: | 1796 public: |
1794 FlagsStateSingleton() | 1797 FlagsStateSingleton() |
1795 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} | 1798 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} |
1796 ~FlagsStateSingleton() {} | 1799 ~FlagsStateSingleton() {} |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1998 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2001 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
1999 | 2002 |
2000 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2003 const FeatureEntry* GetFeatureEntries(size_t* count) { |
2001 *count = arraysize(kFeatureEntries); | 2004 *count = arraysize(kFeatureEntries); |
2002 return kFeatureEntries; | 2005 return kFeatureEntries; |
2003 } | 2006 } |
2004 | 2007 |
2005 } // namespace testing | 2008 } // namespace testing |
2006 | 2009 |
2007 } // namespace about_flags | 2010 } // namespace about_flags |
OLD | NEW |