Chromium Code Reviews| 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 2161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2172 kOsAndroid, FEATURE_WITH_VARIATIONS_VALUE_TYPE( | 2172 kOsAndroid, FEATURE_WITH_VARIATIONS_VALUE_TYPE( |
| 2173 autofill::kAutofillCreditCardPopupLayout, | 2173 autofill::kAutofillCreditCardPopupLayout, |
| 2174 kAutofillCreditCardPopupLayoutFeatureVariations, | 2174 kAutofillCreditCardPopupLayoutFeatureVariations, |
| 2175 "AutofillCreditCardPopupLayout")}, | 2175 "AutofillCreditCardPopupLayout")}, |
| 2176 {"native-android-history-manager", IDS_NATIVE_ANDROID_HISTORY_MANAGER, | 2176 {"native-android-history-manager", IDS_NATIVE_ANDROID_HISTORY_MANAGER, |
| 2177 IDS_NATIVE_ANDROID_HISTORY_MANAGER_DESCRIPTION, kOsAndroid, | 2177 IDS_NATIVE_ANDROID_HISTORY_MANAGER_DESCRIPTION, kOsAndroid, |
| 2178 FEATURE_VALUE_TYPE(chrome::android::kNativeAndroidHistoryManager)}, | 2178 FEATURE_VALUE_TYPE(chrome::android::kNativeAndroidHistoryManager)}, |
| 2179 #endif // OS_ANDROID | 2179 #endif // OS_ANDROID |
| 2180 {"enable-faster-location-reload", IDS_FLAGS_FASTER_LOCATION_RELOAD_NAME, | 2180 {"enable-faster-location-reload", IDS_FLAGS_FASTER_LOCATION_RELOAD_NAME, |
| 2181 IDS_FLAGS_FASTER_LOCATION_RELOAD_DESCRIPTION, kOsAll, | 2181 IDS_FLAGS_FASTER_LOCATION_RELOAD_DESCRIPTION, kOsAll, |
| 2182 FEATURE_VALUE_TYPE(features::kFasterLocationReload)} | 2182 FEATURE_VALUE_TYPE(features::kFasterLocationReload)}, |
| 2183 #if defined(OS_CHROMEOS) | |
| 2184 {"enable-touch-support-for-screen-magnification", | |
|
yoshiki
2017/01/20 05:26:33
Optional: The feature name is "screen magnifier",
yawano
2017/02/06 06:49:04
Done.
| |
| 2185 IDS_FLAGS_ENABLE_TOUCH_SUPPORT_FOR_SCREEN_MAGNIFICATION_NAME, | |
| 2186 IDS_FLAGS_ENABLE_TOUCH_SUPPORT_FOR_SCREEN_MAGNIFICATION_DESCRIPTION, | |
| 2187 kOsCrOS, | |
| 2188 SINGLE_VALUE_TYPE( | |
| 2189 chromeos::switches::kEnableTouchSupportForScreenMagnification)} | |
| 2190 #endif // OS_CHROMEOS | |
| 2183 | 2191 |
| 2184 // NOTE: Adding new command-line switches requires adding corresponding | 2192 // NOTE: Adding new command-line switches requires adding corresponding |
| 2185 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2193 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
| 2186 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2194 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
| 2187 }; | 2195 }; |
| 2188 | 2196 |
| 2189 class FlagsStateSingleton { | 2197 class FlagsStateSingleton { |
| 2190 public: | 2198 public: |
| 2191 FlagsStateSingleton() | 2199 FlagsStateSingleton() |
| 2192 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} | 2200 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2382 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2390 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
| 2383 | 2391 |
| 2384 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2392 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 2385 *count = arraysize(kFeatureEntries); | 2393 *count = arraysize(kFeatureEntries); |
| 2386 return kFeatureEntries; | 2394 return kFeatureEntries; |
| 2387 } | 2395 } |
| 2388 | 2396 |
| 2389 } // namespace testing | 2397 } // namespace testing |
| 2390 | 2398 |
| 2391 } // namespace about_flags | 2399 } // namespace about_flags |
| OLD | NEW |