New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 842000 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Dec 18
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: 3
Type: Bug



Sign in to add a comment

Add validity check kSettingPagesPerSheet once new print preview UI feature rolls out

Project Member Reported by xlou@chromium.org, May 10 2018

Issue description

In print_settings_conversion.cc PrintSettingsFromJobSettings function checks for print settings are set, once new print preview feature is released, we need to check for "Pages Per Sheet" value is set in job_settings.  Currently since "Pages Per Sheet" value is not in the old print preview UI print ticket, checking for validity the same way as that for Landscape, DuplexMode, etc. will cause coredump.
 

Comment 1 by xlou@chromium.org, May 10 2018

Status: Assigned (was: Untriaged)
Labels: Bolton-UI
Owner: ----
Status: Available (was: Assigned)
Cc: rbpotter@chromium.org
Labels: OS-Chrome OS-Linux OS-Mac OS-Windows
We can do this now since the old Print Preview code is gone.
I can take care of that.
Project Member

Comment 5 by bugdroid1@chromium.org, Dec 18

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/d5837bcdd93a751e9f996a49a67c35bf4a0ddd1b

commit d5837bcdd93a751e9f996a49a67c35bf4a0ddd1b
Author: xlou <xlou@chromium.org>
Date: Tue Dec 18 01:46:32 2018

Print Preview: Add validity check for kSettingPagesPerSheet.

It was not checked because pagesPerSheet was only added to the new
print preview UI, adding the validity check caused coredump.  Now
since the old print preview UI is gone, we can add the check.

Bug:  842000 
Change-Id: I413be9f89c7baca135275bd27fc228e23d0f202e
Reviewed-on: https://chromium-review.googlesource.com/c/1381133
Reviewed-by: Rebekah Potter <rbpotter@chromium.org>
Commit-Queue: Shirleen Lou <xlou@chromium.org>
Cr-Commit-Position: refs/heads/master@{#617334}
[modify] https://crrev.com/d5837bcdd93a751e9f996a49a67c35bf4a0ddd1b/printing/print_settings_conversion.cc

Status: Fixed (was: Available)
Owner: xlou@chromium.org

Sign in to add a comment