win: Fix assertion when getting printers
This commit is contained in:
parent
7bf156d197
commit
82452e7924
1 changed files with 1 additions and 0 deletions
|
@ -1341,6 +1341,7 @@ void WebContents::Print(mate::Arguments* args) {
|
|||
std::vector<printing::PrinterBasicInfo> WebContents::GetPrinterList() {
|
||||
std::vector<printing::PrinterBasicInfo> printers;
|
||||
auto print_backend = printing::PrintBackend::CreateInstance(nullptr);
|
||||
base::ThreadRestrictions::ScopedAllowIO allow_io;
|
||||
print_backend->EnumeratePrinters(&printers);
|
||||
return printers;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue