| 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 d2270f7c1a2fe01b487d5cc35d01b936cc3ae8d7..9049ca6237789b9cd90ab50b38ce2f2b431b1ab6 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
|
| @@ -287,6 +287,17 @@ Polymer({
|
| getBaseName_: function(path) {
|
| return path.substring(path.lastIndexOf('/') + 1);
|
| },
|
| +
|
| + /**
|
| + * @param {string} printerManufacturer
|
| + * @param {string} printerModel
|
| + * @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);
|
| + },
|
| });
|
|
|
| Polymer({
|
|
|