Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6215)

Unified Diff: chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.js

Issue 2860883004: [CUPS] Fix the issue the default queue value not being persisted with each new printer setup. (Closed)
Patch Set: 2. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d97e93bd526bea01795afe316b1875f942fcf82c..f1a38cdb89cb3e466e287df0e9fe5273066f1aeb 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
@@ -135,7 +135,7 @@ Polymer({
printerName: '',
printerPPDPath: '',
printerProtocol: 'ipp',
- printerQueue: 'ipp/print',
+ printerQueue: '',
printerStatus: '',
};
},
@@ -155,6 +155,10 @@ Polymer({
/** @private */
switchToManufacturerDialog_: function() {
+ // Set the default printer queue to be "ipp/print".
+ if (!this.newPrinter.printerQueue)
+ this.newPrinter.printerQueue = "ipp/print";
michaelpg 2017/05/04 22:30:10 here and elsewhere, why does this work? Normally P
xdai1 2017/05/05 00:45:37 I think the root reason is it means I don't fully
michaelpg 2017/05/05 19:10:46 It's black magic, none of us do :-) But generally
michaelpg 2017/05/05 20:45:49 Replying to your message:
+
this.$$('add-printer-dialog').close();
this.fire('open-manufacturer-model-dialog');
},
« no previous file with comments | « chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698