diff options
Diffstat (limited to 'chrome/browser/resources/print_preview/print_preview.js')
-rw-r--r-- | chrome/browser/resources/print_preview/print_preview.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/resources/print_preview/print_preview.js b/chrome/browser/resources/print_preview/print_preview.js index 725ba39..047db6e 100644 --- a/chrome/browser/resources/print_preview/print_preview.js +++ b/chrome/browser/resources/print_preview/print_preview.js @@ -249,7 +249,7 @@ function updateControlsWithSelectedPrinterCapabilities() { 'disableColorOption': true, 'setColorAsDefault': true, 'setDuplexAsDefault': false, - 'printerColorModelForColor': colorSettings.COLOR, + 'printerColorModelForColor': print_preview.ColorSettings.COLOR, 'printerDefaultDuplexValue': copiesSettings.UNKNOWN_DUPLEX_MODE, 'disableCopiesOption': true}); } else { @@ -974,7 +974,8 @@ function createPDFPlugin(srcDataIndex) { pdfViewer.goToPage('0'); pdfViewer.resetPrintPreviewUrl(srcURL); pdfViewer.reload(); - pdfViewer.grayscale(colorSettings.colorMode == colorSettings.GRAY); + pdfViewer.grayscale( + colorSettings.colorMode == print_preview.ColorSettings.GRAY); return; } |