WebUI NTP: fix issue with additional callbacks not returning OGB
When a user opens multiple New Tabs rapidly, it's possible for multiple callbacks to await a single OGB response. When multiple callbacks have been collected, the OGB response should be sent to each callback. Due to a bug uncovered when disabling caching, only the first callback was getting the correct OGB response. All the rest of the callbacks would get an empty string. Bug: 1167526 Change-Id: I0d57aeb844251b222166bbc4d6236d7df73d9bdb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2638928 Commit-Queue: Esmael Elmoslimany <aee@chromium.org> Reviewed-by:Tibor Goldschwendt <tiborg@chromium.org> Auto-Submit: Esmael Elmoslimany <aee@chromium.org> Cr-Commit-Position: refs/heads/master@{#845447}
Showing
Please register or sign in to comment