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

Unified Diff: chrome/browser/resources/print_preview/data/ticket_items/vendor_items.js

Issue 601303002: Do not show Advanced Settings for FedEx and Mobile destinations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « no previous file | chrome/browser/resources/print_preview/print_preview.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/print_preview/data/ticket_items/vendor_items.js
diff --git a/chrome/browser/resources/print_preview/data/ticket_items/vendor_items.js b/chrome/browser/resources/print_preview/data/ticket_items/vendor_items.js
index d8c6e89d441fc4e9389d916a68413b580fe8fe9d..b347ff8a2b38709464d2b4e338c10f3a517d706c 100644
--- a/chrome/browser/resources/print_preview/data/ticket_items/vendor_items.js
+++ b/chrome/browser/resources/print_preview/data/ticket_items/vendor_items.js
@@ -60,12 +60,17 @@ cr.define('print_preview.ticket_items', function() {
return false;
},
- /** @return {Object} Media size capability of the selected destination. */
+ /** @return {Object} Vendor capabilities of the selected destination. */
get capability() {
var destination = this.destinationStore_ ?
this.destinationStore_.selectedDestination : null;
- return (destination &&
- destination.capabilities &&
+ if (!destination)
+ return null;
+ if (destination.id == print_preview.Destination.GooglePromotedId.FEDEX ||
+ destination.type == print_preview.Destination.Type.MOBILE) {
+ return null;
+ }
+ return (destination.capabilities &&
destination.capabilities.printer &&
destination.capabilities.printer.vendor_capability) ||
null;
« no previous file with comments | « no previous file | chrome/browser/resources/print_preview/print_preview.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698