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

Unified Diff: chrome/browser/resources/print_preview/data/destination_store.js

Issue 2618313004: [CUPS] Implement the enterprise icon for printers in Print Preview Dialog. (Closed)
Patch Set: Add the missing image. Created 3 years, 11 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
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 dafd6553b237f3a68c0e279e159bd63c44167ed7..86c86df9043bb2a620ca49d9b59b99a5b329cb6d 100644
--- a/chrome/browser/resources/print_preview/data/destination_store.js
+++ b/chrome/browser/resources/print_preview/data/destination_store.js
@@ -1547,10 +1547,17 @@ cr.define('print_preview', function() {
}
destination.capabilities = capabilities;
} else {
+ var printerOptions = null;
+ if (event.settingsInfo['cups_enterprise_printer']) {
+ printerOptions = {'cups_enterprise_printer':
+ event.settingsInfo['cups_enterprise_printer']};
+ }
+
destination = print_preview.LocalDestinationParser.parse(
{deviceName: destinationId,
printerName: printerName,
- printerDescription: printerDescription});
+ printerDescription: printerDescription,
+ printerOptions: printerOptions});
destination.capabilities = capabilities;
this.insertDestination_(destination);
}

Powered by Google App Engine
This is Rietveld 408576698