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

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

Issue 345433002: Relax media size capability restriction to printing PDF file to Save as PDF printer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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/test/data/webui/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/media_size.js
diff --git a/chrome/browser/resources/print_preview/data/ticket_items/media_size.js b/chrome/browser/resources/print_preview/data/ticket_items/media_size.js
index 594df9e202514121b4b8a61e6b93ecd053203cde..d0aa0f759f2b9a0818d824e51537de334add6c0a 100644
--- a/chrome/browser/resources/print_preview/data/ticket_items/media_size.js
+++ b/chrome/browser/resources/print_preview/data/ticket_items/media_size.js
@@ -60,8 +60,12 @@ cr.define('print_preview.ticket_items', function() {
/** @override */
isCapabilityAvailable: function() {
- return this.getDocumentInfoInternal().isModifiable &&
- !!this.capability;
+ var pdfToSaveAsPdf =
+ !this.getDocumentInfoInternal().isModifiable &&
+ this.getSelectedDestInternal() &&
+ this.getSelectedDestInternal().id ==
+ print_preview.Destination.GooglePromotedId.SAVE_AS_PDF;
+ return !pdfToSaveAsPdf && !!this.capability;
},
/** @override */
« no previous file with comments | « no previous file | chrome/test/data/webui/print_preview.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698