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 2203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2214 FEATURE_VALUE_TYPE(features::kLsdPermissionPrompt)}, | 2214 FEATURE_VALUE_TYPE(features::kLsdPermissionPrompt)}, |
2215 #endif | 2215 #endif |
2216 | 2216 |
2217 #if defined(OS_CHROMEOS) | 2217 #if defined(OS_CHROMEOS) |
2218 {"enable-touchscreen-calibration", IDS_FLAGS_TOUCHSCREEN_CALIBRATION_NAME, | 2218 {"enable-touchscreen-calibration", IDS_FLAGS_TOUCHSCREEN_CALIBRATION_NAME, |
2219 IDS_FLAGS_TOUCHSCREEN_CALIBRATION_DESCRIPTION, kOsCrOS, | 2219 IDS_FLAGS_TOUCHSCREEN_CALIBRATION_DESCRIPTION, kOsCrOS, |
2220 SINGLE_VALUE_TYPE(chromeos::switches::kEnableTouchCalibrationSetting)}, | 2220 SINGLE_VALUE_TYPE(chromeos::switches::kEnableTouchCalibrationSetting)}, |
2221 #endif // defined(OS_CHROMEOS) | 2221 #endif // defined(OS_CHROMEOS) |
2222 | 2222 |
2223 #if defined(OS_WIN) | 2223 #if defined(OS_WIN) |
2224 {"gdi-text-printing", IDS_FLAGS_GDI_TEXT_PRINTING, | 2224 {"gdi-text-printing", IDS_FLAGS_GDI_TEXT_PRINTING, |
2225 IDS_FLAGS_GDI_TEXT_PRINTING_DESCRIPTION, kOsWin, | 2225 IDS_FLAGS_GDI_TEXT_PRINTING_DESCRIPTION, kOsWin, |
2226 FEATURE_VALUE_TYPE(features::kGdiTextPrinting)} | 2226 FEATURE_VALUE_TYPE(features::kGdiTextPrinting)}, |
2227 #endif | 2227 {"postscript-printing", IDS_FLAGS_POSTSCRIPT_PRINTING, |
| 2228 IDS_FLAGS_POSTSCRIPT_PRINTING_DESCRIPTION, kOsWin, |
| 2229 FEATURE_VALUE_TYPE(features::kPostScriptPrinting)}, |
| 2230 #endif // defined(OS_WIN) |
2228 | 2231 |
2229 #if defined(OS_CHROMEOS) | 2232 #if defined(OS_CHROMEOS) |
2230 {"show-arc-files-app", IDS_FLAGS_SHOW_ARC_FILES_APP_NAME, | 2233 {"show-arc-files-app", IDS_FLAGS_SHOW_ARC_FILES_APP_NAME, |
2231 IDS_FLAGS_SHOW_ARC_FILES_APP_DESCRIPTION, kOsCrOS, | 2234 IDS_FLAGS_SHOW_ARC_FILES_APP_DESCRIPTION, kOsCrOS, |
2232 FEATURE_VALUE_TYPE(arc::kShowArcFilesAppFeature)}, | 2235 FEATURE_VALUE_TYPE(arc::kShowArcFilesAppFeature)}, |
2233 #endif // defined(OS_CHROMEOS) | 2236 #endif // defined(OS_CHROMEOS) |
2234 | 2237 |
2235 // NOTE: Adding new command-line switches requires adding corresponding | 2238 // NOTE: Adding new command-line switches requires adding corresponding |
2236 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2239 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
2237 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2240 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2433 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2436 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
2434 | 2437 |
2435 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2438 const FeatureEntry* GetFeatureEntries(size_t* count) { |
2436 *count = arraysize(kFeatureEntries); | 2439 *count = arraysize(kFeatureEntries); |
2437 return kFeatureEntries; | 2440 return kFeatureEntries; |
2438 } | 2441 } |
2439 | 2442 |
2440 } // namespace testing | 2443 } // namespace testing |
2441 | 2444 |
2442 } // namespace about_flags | 2445 } // namespace about_flags |
OLD | NEW |