Chromium Code Reviews| Index: chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.js |
| diff --git a/chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.js b/chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.js |
| index 0fee051cf95d01558a8fc13a7ede461664bfefbe..7c350eedb0e163faf518548ca92b6094604084fc 100644 |
| --- a/chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.js |
| +++ b/chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.js |
| @@ -50,6 +50,8 @@ function getEmptyPrinter_() { |
| printerProtocol: 'ipp', |
| printerQueue: '', |
| printerStatus: '', |
| + ppdManufacturer: '', |
|
michaelpg
2017/07/06 20:10:43
optional nit: keep alphabetical
skau
2017/07/06 21:10:36
Done.
|
| + ppdModel: '', |
| }; |
| } |
| @@ -138,8 +140,8 @@ Polymer({ |
| // If we're switching to the manufacturer/model dialog, clear the existing |
| // data we have about the PPD (if any), as we're dropping that in favor of |
| // user selections. |
| - this.selectedPrinter.printerManufacturer = ''; |
| - this.selectedPrinter.printerModel = ''; |
| + this.selectedPrinter.ppdManufacturer = ''; |
| + this.selectedPrinter.ppdModel = ''; |
| this.selectedPrinter.printerPPDPath = ''; |
| this.$$('add-printer-dialog').close(); |
| this.fire('open-manufacturer-model-dialog'); |
| @@ -218,7 +220,7 @@ Polymer({ |
| }, |
| observers: [ |
| - 'selectedManufacturerChanged_(newPrinter.printerManufacturer)', |
| + 'selectedManufacturerChanged_(newPrinter.ppdManufacturer)', |
| ], |
| /** @override */ |
| @@ -235,7 +237,7 @@ Polymer({ |
| */ |
| selectedManufacturerChanged_: function(manufacturer) { |
| // Reset model if manufacturer is changed. |
| - this.set('newPrinter.printerModel', ''); |
| + this.set('newPrinter.ppdModel', ''); |
| if (manufacturer) { |
| settings.CupsPrintersBrowserProxyImpl.getInstance() |
| .getCupsPrinterModelsList(manufacturer) |
| @@ -298,14 +300,14 @@ Polymer({ |
| }, |
| /** |
| - * @param {string} printerManufacturer |
| - * @param {string} printerModel |
| + * @param {string} ppdManufacturer |
| + * @param {string} ppdModel |
| * @param {string} printerPPDPath |
| * @return {boolean} Whether we have enough information to set up the printer |
| * @private |
| */ |
| - canAddPrinter_: function(printerManufacturer, printerModel, printerPPDPath) { |
| - return !!((printerManufacturer && printerModel) || printerPPDPath); |
| + canAddPrinter_: function(ppdManufacturer, ppdModel, printerPPDPath) { |
| + return !!((ppdManufacturer && ppdModel) || printerPPDPath); |
| }, |
| }); |