[ntp][modules] Fix promo and module coordination
* Show modules even if there is no promo. Modules wait until the promo has sent a loaded event. Before, this event was only sent if there was a promo. This CL changes it so that the event is sent even if there is no promo. * Only log NewTabPage.Modules.ShownTime after modules are allowed to be visible. This could be after they are added to the DOM in case the promo takes longer to load. Bug: 1134269 Change-Id: I5975524ba3c783de66dda2b98d347442f6b73a96 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2443693 Commit-Queue: Tibor Goldschwendt <tiborg@chromium.org> Reviewed-by:Moe Ahmadi <mahmadi@chromium.org> Auto-Submit: Tibor Goldschwendt <tiborg@chromium.org> Cr-Commit-Position: refs/heads/master@{#813285}
Showing
Please register or sign in to comment