• Ben Wells's avatar
    Stop showing message incorrectly when opening files on another desktop · 88c3b867
    Ben Wells authored
    In a multiprofile session, windows can be sent to other desktops. This
    can be done to the Files app, and when files are opened when it is in
    this state the apps may open on the original desktop (i.e. that of the
    profile that owns the files). When this occurs an info message is
    displayed as otherwise it appears to the user as though nothing
    happened.
    
    The files app shows this message for web apps even though they are
    opened on the current desktop. This change stops the info message being
    shown in this case.
    
    This change also adds some clarifying comments and also adds some TODOs
    for other situations that might have similar bugs.
    
    Bug: 1109589
    Change-Id: I9ceab68fc6547813d4e83f879e04adbcf07a1093
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2359870Reviewed-by: default avatarAlex Danilo <adanilo@chromium.org>
    Commit-Queue: Ben Wells <benwells@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#806545}
    88c3b867
web_file_tasks.cc 6.83 KB