| Index: chrome/browser/resources/print_preview/native_layer.js
|
| diff --git a/chrome/browser/resources/print_preview/native_layer.js b/chrome/browser/resources/print_preview/native_layer.js
|
| index ff45714d225cb9495c1c73c97ec29aaeb8a69b78..988601f49b98f39033809c50a00b81ff8e2135b0 100644
|
| --- a/chrome/browser/resources/print_preview/native_layer.js
|
| +++ b/chrome/browser/resources/print_preview/native_layer.js
|
| @@ -140,12 +140,8 @@ cr.define('print_preview', function() {
|
| assert(printTicketStore.isTicketValidForPreview(),
|
| 'Trying to generate preview when ticket is not valid');
|
|
|
| - var pageRanges =
|
| - (requestId > 0 && printTicketStore.hasPageRangeCapability()) ?
|
| - printTicketStore.getPageNumberSet().getPageRanges() : [];
|
| -
|
| var ticket = {
|
| - 'pageRange': pageRanges,
|
| + 'pageRange': printTicketStore.getDocumentPageRanges(),
|
| 'landscape': printTicketStore.isLandscapeEnabled(),
|
| 'color': printTicketStore.isColorEnabled() ?
|
| NativeLayer.ColorMode_.COLOR : NativeLayer.ColorMode_.GRAY,
|
| @@ -215,8 +211,7 @@ cr.define('print_preview', function() {
|
| 'Trying to print when ticket is not valid');
|
|
|
| var ticket = {
|
| - 'pageRange': printTicketStore.hasPageRangeCapability() ?
|
| - printTicketStore.getPageNumberSet().getPageRanges() : [],
|
| + 'pageRange': printTicketStore.getDocumentPageRanges(),
|
| 'pageCount': printTicketStore.getPageNumberSet().size,
|
| 'landscape': printTicketStore.isLandscapeEnabled(),
|
| 'color': printTicketStore.isColorEnabled() ?
|
|
|