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

Unified Diff: chrome/browser/resources/print_preview/print_header.js

Issue 2197393002: Show "pages" not "sheets of paper" on print to drive. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/print_preview/print_header.js
diff --git a/chrome/browser/resources/print_preview/print_header.js b/chrome/browser/resources/print_preview/print_header.js
index 4eec37f72592045c4054ed8d4785160011151798..7b9b8ded9506c6fb5f94cc9ff09f49ed55021a46 100644
--- a/chrome/browser/resources/print_preview/print_header.js
+++ b/chrome/browser/resources/print_preview/print_header.js
@@ -163,16 +163,18 @@ cr.define('print_preview', function() {
loadTimeData.getString('printPreviewSheetsLabelSingular');
var pagesLabel = loadTimeData.getString('printPreviewPageLabelPlural');
- var saveToPdf = this.destinationStore_.selectedDestination &&
- this.destinationStore_.selectedDestination.id ==
- print_preview.Destination.GooglePromotedId.SAVE_AS_PDF;
- if (saveToPdf) {
+ var saveToPdfOrDrive = this.destinationStore_.selectedDestination &&
+ (this.destinationStore_.selectedDestination.id ==
+ print_preview.Destination.GooglePromotedId.SAVE_AS_PDF ||
+ this.destinationStore_.selectedDestination.id ==
+ print_preview.Destination.GooglePromotedId.DOCS);
+ if (saveToPdfOrDrive) {
summaryLabel = loadTimeData.getString('printPreviewPageLabelSingular');
}
var numPages = this.printTicketStore_.pageRange.getPageNumberSet().size;
var numSheets = numPages;
- if (!saveToPdf && this.printTicketStore_.duplex.getValue()) {
+ if (!saveToPdfOrDrive && this.printTicketStore_.duplex.getValue()) {
numSheets = Math.ceil(numPages / 2);
}
@@ -181,7 +183,7 @@ cr.define('print_preview', function() {
numPages *= copies;
if (numSheets > 1) {
- summaryLabel = saveToPdf ? pagesLabel :
+ summaryLabel = saveToPdfOrDrive ? pagesLabel :
loadTimeData.getString('printPreviewSheetsLabelPlural');
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698