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 2191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2202 FEATURE_VALUE_TYPE(features::kLsdPermissionPrompt)}, | 2202 FEATURE_VALUE_TYPE(features::kLsdPermissionPrompt)}, |
2203 #endif | 2203 #endif |
2204 | 2204 |
2205 #if defined(OS_CHROMEOS) | 2205 #if defined(OS_CHROMEOS) |
2206 {"enable-touchscreen-calibration", IDS_FLAGS_TOUCHSCREEN_CALIBRATION_NAME, | 2206 {"enable-touchscreen-calibration", IDS_FLAGS_TOUCHSCREEN_CALIBRATION_NAME, |
2207 IDS_FLAGS_TOUCHSCREEN_CALIBRATION_DESCRIPTION, kOsCrOS, | 2207 IDS_FLAGS_TOUCHSCREEN_CALIBRATION_DESCRIPTION, kOsCrOS, |
2208 SINGLE_VALUE_TYPE(chromeos::switches::kEnableTouchCalibrationSetting)}, | 2208 SINGLE_VALUE_TYPE(chromeos::switches::kEnableTouchCalibrationSetting)}, |
2209 #endif // defined(OS_CHROMEOS) | 2209 #endif // defined(OS_CHROMEOS) |
2210 | 2210 |
2211 #if defined(OS_WIN) | 2211 #if defined(OS_WIN) |
2212 {"gdi-text-printing", IDS_FLAGS_GDI_TEXT_PRINTING, | 2212 {"gdi-text-printing", IDS_FLAGS_GDI_TEXT_PRINTING, |
2213 IDS_FLAGS_GDI_TEXT_PRINTING_DESCRIPTION, kOsWin, | 2213 IDS_FLAGS_GDI_TEXT_PRINTING_DESCRIPTION, kOsWin, |
2214 FEATURE_VALUE_TYPE(features::kGdiTextPrinting)} | 2214 FEATURE_VALUE_TYPE(features::kGdiTextPrinting)}, |
2215 #endif | 2215 {"postscript-printing", IDS_FLAGS_POSTSCRIPT_PRINTING, |
| 2216 IDS_FLAGS_POSTSCRIPT_PRINTING_DESCRIPTION, kOsWin, |
| 2217 FEATURE_VALUE_TYPE(features::kPostScriptPrinting)} |
| 2218 #endif // defined(OS_WIN) |
2216 // NOTE: Adding new command-line switches requires adding corresponding | 2219 // NOTE: Adding new command-line switches requires adding corresponding |
2217 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2220 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
2218 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2221 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
2219 }; | 2222 }; |
2220 | 2223 |
2221 class FlagsStateSingleton { | 2224 class FlagsStateSingleton { |
2222 public: | 2225 public: |
2223 FlagsStateSingleton() | 2226 FlagsStateSingleton() |
2224 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} | 2227 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} |
2225 ~FlagsStateSingleton() {} | 2228 ~FlagsStateSingleton() {} |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2414 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2417 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
2415 | 2418 |
2416 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2419 const FeatureEntry* GetFeatureEntries(size_t* count) { |
2417 *count = arraysize(kFeatureEntries); | 2420 *count = arraysize(kFeatureEntries); |
2418 return kFeatureEntries; | 2421 return kFeatureEntries; |
2419 } | 2422 } |
2420 | 2423 |
2421 } // namespace testing | 2424 } // namespace testing |
2422 | 2425 |
2423 } // namespace about_flags | 2426 } // namespace about_flags |
OLD | NEW |