Skip to content

Commit 0cbfd33

Browse files
committed
3583239: Pass max uint value for end of open page range
https://chromium-review.googlesource.com/c/chromium/src/+/3583239
1 parent a325889 commit 0cbfd33

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

shell/browser/printing/print_view_manager_electron.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ std::string PrintViewManagerElectron::PrintResultToString(PrintResult result) {
8080
return "The previous printing job hasn't finished";
8181
case PAGE_RANGE_SYNTAX_ERROR:
8282
return "Page range syntax error";
83+
case PAGE_RANGE_INVALID_RANGE:
84+
return "Page range is invalid (start > end)";
8385
case PAGE_COUNT_EXCEEDED:
8486
return "Page range exceeds page count";
8587
default:

shell/browser/printing/print_view_manager_electron.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class PrintViewManagerElectron
3535
METAFILE_GET_DATA_ERROR,
3636
SIMULTANEOUS_PRINT_ACTIVE,
3737
PAGE_RANGE_SYNTAX_ERROR,
38+
PAGE_RANGE_INVALID_RANGE,
3839
PAGE_COUNT_EXCEEDED,
3940
};
4041

0 commit comments

Comments
 (0)