Only close notification if it is still displayed.
This is an optimization to only try to close a notification after deleting its data, if we believe that it is still on screen. If the notification got closed by the user for example, we do not need to explicitly close it again as it is already gone. Bug: 962885 Change-Id: Id949ff4a15623070d6781e404d873361c433cf55 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1609852 Commit-Queue: Richard Knoll <knollr@chromium.org> Reviewed-by:Peter Beverloo <peter@chromium.org> Reviewed-by:
Avi Drissman <avi@chromium.org> Cr-Commit-Position: refs/heads/master@{#659972}
Showing
Please register or sign in to comment