Added null checks for properties on ToolbarView that can be null.
BrowserView's toolbar() will have null app_menu_button() and browser_actions() in hosted app windows, which could result in null dereferences in certain corner cases. This adds null checks where it's obviously safe to do so. A better fix would be to use toolbar_button_provider() to access the hosted app window's real app menu button and actions container, but that requires more careful consideration. Bug: 826596, 811982 Change-Id: Iea0a0ea3acffe5ed1016e61bd8ae2fe36971c79d Reviewed-on: https://chromium-review.googlesource.com/1010002Reviewed-by:Avi Drissman <avi@chromium.org> Reviewed-by:
Michael Wasserman <msw@chromium.org> Commit-Queue: Matt Giuca <mgiuca@chromium.org> Cr-Commit-Position: refs/heads/master@{#550381}
Showing
Please register or sign in to comment