[component updater] Fix race condition in background task scheduler
If the background task scheduler started Chrome it could happen that we wanted to schedule a component update before the update callback was set. This caused seg faults. Instead, add a delay to give enough time for all components to finish registering and set the update callback. If there is still no update callback set finish the task and retry after a default delay. Bug: 867354, 876424 Change-Id: I3ef8277a4e45384531a08652d5534831f8fd2056 Reviewed-on: https://chromium-review.googlesource.com/1183961Reviewed-by:Tommy Nyquist <nyquist@chromium.org> Reviewed-by:
Sorin Jianu <sorin@chromium.org> Reviewed-by:
Joshua Pawlicki <waffles@chromium.org> Commit-Queue: Tibor Goldschwendt <tiborg@chromium.org> Cr-Commit-Position: refs/heads/master@{#585177}
Showing
Please register or sign in to comment