| 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 2102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2113 kOsAndroid, | 2113 kOsAndroid, |
| 2114 SINGLE_VALUE_TYPE_AND_VALUE( | 2114 SINGLE_VALUE_TYPE_AND_VALUE( |
| 2115 switches::kMarketUrlForTesting, | 2115 switches::kMarketUrlForTesting, |
| 2116 "https://play.google.com/store/apps/details?id=com.android.chrome")}, | 2116 "https://play.google.com/store/apps/details?id=com.android.chrome")}, |
| 2117 #endif // OS_ANDROID | 2117 #endif // OS_ANDROID |
| 2118 #if defined(OS_WIN) || defined(OS_MACOSX) | 2118 #if defined(OS_WIN) || defined(OS_MACOSX) |
| 2119 {"automatic-tab-discarding", IDS_FLAGS_AUTOMATIC_TAB_DISCARDING_NAME, | 2119 {"automatic-tab-discarding", IDS_FLAGS_AUTOMATIC_TAB_DISCARDING_NAME, |
| 2120 IDS_FLAGS_AUTOMATIC_TAB_DISCARDING_DESCRIPTION, kOsWin | kOsMac, | 2120 IDS_FLAGS_AUTOMATIC_TAB_DISCARDING_DESCRIPTION, kOsWin | kOsMac, |
| 2121 FEATURE_VALUE_TYPE(features::kAutomaticTabDiscarding)}, | 2121 FEATURE_VALUE_TYPE(features::kAutomaticTabDiscarding)}, |
| 2122 #endif // OS_WIN || OS_MACOSX | 2122 #endif // OS_WIN || OS_MACOSX |
| 2123 {"enable-pointer-events", // FLAGS:RECORD_UMA |
| 2124 IDS_FLAGS_EXPERIMENTAL_POINTER_EVENT_NAME, |
| 2125 IDS_FLAGS_EXPERIMENTAL_POINTER_EVENT_DESCRIPTION, |
| 2126 kOsAll, |
| 2127 SINGLE_VALUE_TYPE(switches::kEnablePointerEvents)}, |
| 2123 // NOTE: Adding new command-line switches requires adding corresponding | 2128 // NOTE: Adding new command-line switches requires adding corresponding |
| 2124 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2129 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
| 2125 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2130 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
| 2126 }; | 2131 }; |
| 2127 | 2132 |
| 2128 class FlagsStateSingleton { | 2133 class FlagsStateSingleton { |
| 2129 public: | 2134 public: |
| 2130 FlagsStateSingleton() | 2135 FlagsStateSingleton() |
| 2131 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} | 2136 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} |
| 2132 ~FlagsStateSingleton() {} | 2137 ~FlagsStateSingleton() {} |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2326 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2331 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
| 2327 | 2332 |
| 2328 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2333 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 2329 *count = arraysize(kFeatureEntries); | 2334 *count = arraysize(kFeatureEntries); |
| 2330 return kFeatureEntries; | 2335 return kFeatureEntries; |
| 2331 } | 2336 } |
| 2332 | 2337 |
| 2333 } // namespace testing | 2338 } // namespace testing |
| 2334 | 2339 |
| 2335 } // namespace about_flags | 2340 } // namespace about_flags |
| OLD | NEW |