• Andrew Xu's avatar
    Fixing bug of display orientation setting · 099f614a
    Andrew Xu authored
    (1) Modified code so that tablet
    mode updating will enable/disable display
    orientation in setting page.
    
    (2) Code refactoring: move all of methods
    related with display information in
    SystemInfoApi::SystemInfoEventRouter to
    DisplayInfoProvider and its subclasses.
    
    In the previous code, tablet mode's change
    will not affect display orientation when
    setting page has already shown. As result,
    when opening setting page then changing
    laptop to tablet mode, user is still able
    to modify display orientation. After
    investigation, the bug reason is that in
    ChromeOS change in tablet mode will not
    trigger OnDisplayChanged event.
    
    Bug: 889625
    Change-Id: Ic526ec54e6c01cd14a0d4a7e883774b9fafed268
    Reviewed-on: https://chromium-review.googlesource.com/c/1264544
    Commit-Queue: Andrew Xu <andrewxu@chromium.org>
    Reviewed-by: default avatarToni Baržić <tbarzic@chromium.org>
    Reviewed-by: default avatarSteven Bennetts <stevenjb@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#599846}
    099f614a
BUILD.gn 287 KB