• James Cook's avatar
    Fix runtime error in chrome://set-time dialog · 55326c30
    James Cook authored
    If the dialog is opened from OS settings, it does not show the
    timezone. However, the C++ code can sometimes send a timezone update
    while the dialog is open.
    
    Only update the timezone select if it is showing. Always send the
    current timezone from C++ when the dialog opens, such that we can
    adjust the time picker appropriately if the timezone changes.
    
    Bug: 1015179
    Test: added to JS tests
    Change-Id: I1cd641c377a209c114d4c1359acbce775bf438c2
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2052565Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
    Commit-Queue: James Cook <jamescook@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#741097}
    55326c30
set_time_ui.cc 7.77 KB