Chromium Code Reviews| Index: chrome/browser/resources/print_preview.js |
| diff --git a/chrome/browser/resources/print_preview.js b/chrome/browser/resources/print_preview.js |
| index 9bc3731f709260e2d504da5ab2f1cc35a6328143..a6184e0398deb23847c4cff22b12f09f03373ac0 100644 |
| --- a/chrome/browser/resources/print_preview.js |
| +++ b/chrome/browser/resources/print_preview.js |
| @@ -338,7 +338,9 @@ function setPrinters(printers, defaultPrinterIndex) { |
| addDestinationListOption(printers[i].printerName, printers[i].deviceName, |
| i == defaultPrinterIndex, false); |
| } |
| - addDestinationListOption('','',false, true); |
| + |
| + if (printers.length != 0) |
| + addDestinationListOption('','',false, true); |
|
Lei Zhang
2011/05/23 21:46:19
nit: can you put a space after the comma here and
|
| // Adding option for saving PDF to disk. |
| addDestinationListOption(localStrings.getString('printToPDF'), |