| Index: chrome/browser/resources/print_preview/data/destination_store.js
|
| diff --git a/chrome/browser/resources/print_preview/data/destination_store.js b/chrome/browser/resources/print_preview/data/destination_store.js
|
| index a96778fcea849646b4df90b85660bf85ce4884fd..52a1d9cf1f6c1f95c38c63d22d4eb4836b24b110 100644
|
| --- a/chrome/browser/resources/print_preview/data/destination_store.js
|
| +++ b/chrome/browser/resources/print_preview/data/destination_store.js
|
| @@ -509,6 +509,9 @@ cr.define('print_preview', function() {
|
| * @private
|
| */
|
| DestinationStore.localizeCapabilities_ = function(capabilities) {
|
| + if (!capabilities.printer)
|
| + return capabilities;
|
| +
|
| var mediaSize = capabilities.printer.media_size;
|
| if (!mediaSize)
|
| return capabilities;
|
| @@ -545,6 +548,9 @@ cr.define('print_preview', function() {
|
| * @private
|
| */
|
| DestinationStore.sortMediaSizes_ = function(capabilities) {
|
| + if (!capabilities.printer)
|
| + return capabilities;
|
| +
|
| var mediaSize = capabilities.printer.media_size;
|
| if (!mediaSize)
|
| return capabilities;
|
|
|