• Wei Li's avatar
    [HaTS] Preload survey dialog before prompt · 5dd6e801
    Wei Li authored
    Since we fetch survey content from a remote server, we have to
    handle situations such as no internet or slow connections etc. To
    work around all such problems, this CL creates the web dialog and
    preload the survey content before showing user the bubble banner.
    We only show the bubble banner after we already retrieve the survey
    content. The pros of this approach include 1) avoid handling offline
    and slow loading scenarios; 2) fast UI -- the dialog will immediately
    show up once user consents.
    
    BUG=979530,996542
    
    Change-Id: I7163c1fd06a479460d4705458c880f5e17ce1b5f
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1745710
    Commit-Queue: Wei Li <weili@chromium.org>
    Reviewed-by: default avatarScott Violet <sky@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#690863}
    5dd6e801
hats_bubble_view.cc 6.44 KB