New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 816996 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

Delay returning getPrinterList until the policy file is parsed

Project Member Reported by skau@chromium.org, Feb 27 2018

Issue description

Printer policy files take some time to parse.  So, results aren't available immediately after creation of CupsPrintersManager.  Normally, callers listen to OnPrintersChanged.  For simplicity, the autotest API tries to query for printers synchronously.  This works if we wait for about 100ms.
 
Cc: skau@chromium.org
Owner: pawliczek@chromium.org
Status: Assigned (was: Started)
Callsite is here:
https://cs.chromium.org/chromium/src/chrome/browser/extensions/api/autotest_private/autotest_private_api.cc?type=cs&q=autotest_private&sq=package:chromium&g=0&l=462

We probably need to add a notification in CupsPrintersManager that reports when the first query has occurred.
Labels: Bolton-Testing M-73

Sign in to add a comment