Skip to content

Commit

Permalink
chore: fixup lint
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed May 24, 2022
1 parent a88c111 commit db2be74
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion shell/browser/api/electron_api_web_contents.cc
Expand Up @@ -2805,7 +2805,7 @@ void WebContents::Print(gin::Arguments* args) {
std::move(callback), device_name, silent));
}

// Partially duplicated and modified from
// Partially duplicated and modified from
// headless/lib/browser/protocol/page_handler.cc;l=41
v8::Local<v8::Promise> WebContents::PrintToPDF(const base::Value& settings) {
v8::Isolate* isolate = JavascriptEnvironment::GetIsolate();
Expand Down
8 changes: 5 additions & 3 deletions shell/browser/printing/print_view_manager_electron.cc
Expand Up @@ -109,8 +109,8 @@ void PrintViewManagerElectron::PrintToPdf(
return;
}

absl::variant<printing::PageRanges, print_to_pdf::PageRangeError> parsed_ranges =
print_to_pdf::TextPageRangesToPageRanges(page_ranges);
absl::variant<printing::PageRanges, print_to_pdf::PageRangeError>
parsed_ranges = print_to_pdf::TextPageRangesToPageRanges(page_ranges);
if (absl::holds_alternative<print_to_pdf::PageRangeError>(parsed_ranges)) {
PrintResult print_result;
switch (absl::get<print_to_pdf::PageRangeError>(parsed_ranges)) {
Expand Down Expand Up @@ -166,7 +166,9 @@ void PrintViewManagerElectron::ShowInvalidPrinterSettingsError() {
ReleaseJob(INVALID_PRINTER_SETTINGS);
}

void PrintViewManagerElectron::PrintingFailed(int32_t cookie, printing::mojom::PrintFailureReason reason) {
void PrintViewManagerElectron::PrintingFailed(
int32_t cookie,
printing::mojom::PrintFailureReason reason) {
ReleaseJob(reason == printing::mojom::PrintFailureReason::kInvalidPageRange
? PAGE_COUNT_EXCEEDED
: PRINTING_FAILED);
Expand Down

0 comments on commit db2be74

Please sign in to comment.