#include "printing/printing_features.h"
#include "build/build_config.h"
#include "printing/buildflags/buildflags.h"
#if BUILDFLAG(ENABLE_OOP_PRINTING)
#include "base/metrics/field_trial_params.h"
#endif
namespace printing::features {
#if BUILDFLAG(IS_CHROMEOS)
BASE_FEATURE(kAddPrinterViaPrintscanmgr, base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kApiPrintingMarginsAndScale, base::FEATURE_DISABLED_BY_DEFAULT);
#endif
BASE_FEATURE(kAlignPdfDefaultPrintSettingsWithHTML,
base::FEATURE_DISABLED_BY_DEFAULT);
#if BUILDFLAG(IS_LINUX)
BASE_FEATURE(kCupsIppPrintingBackend, base::FEATURE_DISABLED_BY_DEFAULT);
#endif
#if BUILDFLAG(IS_WIN)
BASE_FEATURE(kPrintWithPostScriptType42Fonts,
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kPrintWithReducedRasterization, base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kReadPrinterCapabilitiesWithXps,
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kUseXpsForPrinting, base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kUseXpsForPrintingFromPdf, base::FEATURE_DISABLED_BY_DEFAULT);
#endif
#if BUILDFLAG(ENABLE_OOP_PRINTING)
BASE_FEATURE(kEnableOopPrintDrivers,
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC)
base::FEATURE_ENABLED_BY_DEFAULT
#else
base::FEATURE_DISABLED_BY_DEFAULT
#endif
);
const base::FeatureParam<bool> kEnableOopPrintDriversEarlyStart{
&kEnableOopPrintDrivers, "EarlyStart", false};
const base::FeatureParam<bool> kEnableOopPrintDriversJobPrint{
&kEnableOopPrintDrivers, "JobPrint", true};
const base::FeatureParam<bool> kEnableOopPrintDriversSandbox{
&kEnableOopPrintDrivers, "Sandbox", false};
#if BUILDFLAG(IS_WIN)
const base::FeatureParam<bool> kEnableOopPrintDriversSingleProcess{
&kEnableOopPrintDrivers, "SingleProcess", true};
#endif
#endif
}