DescriptionFix a crash for ppb_pdf_impl.cc under single process model
In PPB_PDF_Impl::SetPrintClient where CHECK(!g_print_client) may fail under
--single-process model, since code here is to expect there to be only one
g_print_client instance within a render process(thread). But --single-process
model will create all RenderThread in a single process, thus g_print_client may
be created many times in a single process and CHECK(!g_print_client) will fail.
In this patch we will change g_print_client from process-level to
RenderThread-level, since every render process will only keep one RenderThread.
BUG=457580
Committed: https://crrev.com/1251f5f51de3d611c74535883f8263b3283eca69
Cr-Commit-Position: refs/heads/master@{#316422}
Patch Set 1 #
Total comments: 1
Patch Set 2 : Add a comment and and reference #Patch Set 3 : #Messages
Total messages: 9 (3 generated)
|