fix: check printer list when no default printers (#25515)

This commit is contained in:
Shelley Vohr 2020-09-21 14:42:27 -06:00 committed by GitHub
parent ea76788b67
commit 15c30c5649
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 5 deletions

View file

@ -263,7 +263,7 @@ class WebContents : public gin::Wrappable<WebContents>,
bool silent,
base::string16 default_printer);
void Print(gin::Arguments* args);
std::vector<printing::PrinterBasicInfo> GetPrinterList();
printing::PrinterList GetPrinterList();
// Print current page as PDF.
v8::Local<v8::Promise> PrintToPDF(base::DictionaryValue settings);
#endif