Chromium Code Reviews| 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 e48f4cece004d47edd55e95917aafc2227963633..fb3ad8f31fb49b1a8f13d34f61950a4e5aa04435 100644 |
| --- a/chrome/test/data/webui/print_preview.js |
| +++ b/chrome/test/data/webui/print_preview.js |
| @@ -61,19 +61,15 @@ PrintPreviewWebUITest.prototype = { |
| * @override |
| */ |
| testGenPreamble: function() { |
| - // Enable print scaling and print as image for tests. |
| + // Enable print as image for tests on non Windows/Mac |
|
dpapad
2017/04/25 21:29:10
Period missing.
rbpotter
2017/04/26 00:33:01
Done.
|
| + 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(' char enabled_features[128] = {0};'); |
| - GEN(' strcpy(enabled_features, features::kPrintScaling.name);'); |
| - GEN('#if !defined(OS_WINDOWS) && !defined(OS_MACOSX)'); |
| - GEN(' strcat(strcat(enabled_features, ","), '); |
| - GEN(' features::kPrintPdfAsImage.name);'); |
| - GEN('#endif'); |
| GEN(' feature_list->InitializeFromCommandLine('); |
| - GEN(' enabled_features, std::string());'); |
| + GEN(' features::kPrintPdfAsImage.name, std::string());'); |
| GEN(' base::FeatureList::SetInstance(std::move(feature_list));'); |
| + GEN('#endif'); |
| }, |
| /** |