| Index: chrome/test/data/webui/print_preview.js
|
| diff --git a/chrome/test/data/webui/print_preview.js b/chrome/test/data/webui/print_preview.js
|
| index 68d90b86108b4ac998167ce430c4aa8399640580..55f6e4a99b846df39d5b5af094748face72863d3 100644
|
| --- a/chrome/test/data/webui/print_preview.js
|
| +++ b/chrome/test/data/webui/print_preview.js
|
| @@ -59,21 +59,6 @@ PrintPreviewWebUITest.prototype = {
|
| isAsync: true,
|
|
|
| /**
|
| - * @override
|
| - */
|
| - testGenPreamble: function() {
|
| - // Enable print as image for tests on non Windows/Mac.
|
| - GEN('#if !defined(OS_WINDOWS) && !defined(OS_MACOSX)');
|
| - GEN(' base::FeatureList::ClearInstanceForTesting();');
|
| - GEN(' std::unique_ptr<base::FeatureList>');
|
| - GEN(' feature_list(new base::FeatureList);');
|
| - GEN(' feature_list->InitializeFromCommandLine(');
|
| - GEN(' features::kPrintPdfAsImage.name, std::string());');
|
| - GEN(' base::FeatureList::SetInstance(std::move(feature_list));');
|
| - GEN('#endif');
|
| - },
|
| -
|
| - /**
|
| * Stub out low-level functionality like the NativeLayer and
|
| * CloudPrintInterface.
|
| * @this {PrintPreviewWebUITest}
|
| @@ -421,7 +406,9 @@ function getCddTemplate(printerId) {
|
| }
|
|
|
| function isPrintAsImageEnabled() {
|
| - return !cr.isWindows && !cr.isMac;
|
| + // Should be enabled by default on non Windows/Mac
|
| + return (!cr.isWindows && !cr.isMac &&
|
| + loadTimeData.getBoolean('printPdfAsImageEnabled'));
|
| }
|
|
|
| // Test restore settings with one destination.
|
|
|