[Extension] Create lazy background host if there are pending requests.
A pending request could get added to LazyBackgroundTaskQueue while the extension is not enabled (e.g. if it crashed and is waiting to be reloaded). This appears to be by design. In such a case we do not attempt to create the background host. The request (and subsequent requests) could become stuck if the background host does not get created. This patch changes LazyBackgroundTaskQueue to listen for extension loaded, and creates a background host if there are pending requests. This patch also makes sure we only create a PendingTasksList entry if we are enqueueing a request to it. Bug: 835017 Change-Id: Ie2aff8cfb620a1867b033c3474a3277a283fb258 Reviewed-on: https://chromium-review.googlesource.com/1058083Reviewed-by:Devlin <rdevlin.cronin@chromium.org> Commit-Queue: Derek Cheng <imcheng@chromium.org> Cr-Commit-Position: refs/heads/master@{#560303}
Showing
Please register or sign in to comment