Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1203)

Side by Side Diff: chrome/browser/about_flags.cc

Issue 2301463002: Added runtime flag for Gamepad Extensions (Closed)
Patch Set: Rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | content/child/runtime_features.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 2046 matching lines...) Expand 10 before | Expand all | Expand 10 after
2057 FEATURE_VALUE_TYPE(features::kFeaturePolicy)}, 2057 FEATURE_VALUE_TYPE(features::kFeaturePolicy)},
2058 {"enable-pointer-event-v1-spec-capturing-behavior", 2058 {"enable-pointer-event-v1-spec-capturing-behavior",
2059 IDS_FLAGS_EXPERIMENTAL_POINTER_EVENT_V1_SPEC_CAPTURING_NAME, 2059 IDS_FLAGS_EXPERIMENTAL_POINTER_EVENT_V1_SPEC_CAPTURING_NAME,
2060 IDS_FLAGS_EXPERIMENTAL_POINTER_EVENT_V1_SPEC_CAPTURING_DESCRIPTION, kOsAll, 2060 IDS_FLAGS_EXPERIMENTAL_POINTER_EVENT_V1_SPEC_CAPTURING_DESCRIPTION, kOsAll,
2061 FEATURE_VALUE_TYPE(features::kPointerEventV1SpecCapturing)}, 2061 FEATURE_VALUE_TYPE(features::kPointerEventV1SpecCapturing)},
2062 #if defined(OS_CHROMEOS) 2062 #if defined(OS_CHROMEOS)
2063 {"enable-emoji-handwriting-voice-on-ime-menu", 2063 {"enable-emoji-handwriting-voice-on-ime-menu",
2064 IDS_FLAGS_ENABLE_EHV_INPUT_NAME, IDS_FLAGS_ENABLE_EHV_INPUT_DESCRIPTION, 2064 IDS_FLAGS_ENABLE_EHV_INPUT_NAME, IDS_FLAGS_ENABLE_EHV_INPUT_DESCRIPTION,
2065 kOsCrOS, FEATURE_VALUE_TYPE(features::kEHVInputOnImeMenu)}, 2065 kOsCrOS, FEATURE_VALUE_TYPE(features::kEHVInputOnImeMenu)},
2066 #endif 2066 #endif
2067 {"enable-gamepad-extensions", IDS_FLAGS_GAMEPAD_EXTENSIONS_NAME,
2068 IDS_FLAGS_GAMEPAD_EXTENSIONS_DESCRIPTION, kOsAll,
2069 FEATURE_VALUE_TYPE(features::kGamepadExtensions)},
2067 // NOTE: Adding new command-line switches requires adding corresponding 2070 // NOTE: Adding new command-line switches requires adding corresponding
2068 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 2071 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
2069 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 2072 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
2070 }; 2073 };
2071 2074
2072 class FlagsStateSingleton { 2075 class FlagsStateSingleton {
2073 public: 2076 public:
2074 FlagsStateSingleton() 2077 FlagsStateSingleton()
2075 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} 2078 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {}
2076 ~FlagsStateSingleton() {} 2079 ~FlagsStateSingleton() {}
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
2239 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2242 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2240 2243
2241 const FeatureEntry* GetFeatureEntries(size_t* count) { 2244 const FeatureEntry* GetFeatureEntries(size_t* count) {
2242 *count = arraysize(kFeatureEntries); 2245 *count = arraysize(kFeatureEntries);
2243 return kFeatureEntries; 2246 return kFeatureEntries;
2244 } 2247 }
2245 2248
2246 } // namespace testing 2249 } // namespace testing
2247 2250
2248 } // namespace about_flags 2251 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | content/child/runtime_features.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698