Commit 3e4254d9 authored by Rohit Rao's avatar Rohit Rao Committed by Commit Bot

[ios] Tests for nullptr before using _popupView.

When the BVC presentation experiment is enabled and the last incognito tab is
closed, transition animations continue to run even after the incognito
BrowserState is destroyed.  Variables that are cleared in
|browserStateDestroyed| must be tested for nullptr before use.

BUG=787821

Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs
Change-Id: Ic5443690337d311e1ce3e347e563d3111cc06f5e
Reviewed-on: https://chromium-review.googlesource.com/831095
Commit-Queue: Justin Cohen <justincohen@chromium.org>
Reviewed-by: default avatarJustin Cohen <justincohen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#524626}
parent e9dca222
......@@ -1915,7 +1915,9 @@ using ios::material::TimingFunction;
// The popup positions itself as a static frame below the web toolbar. This
// will no longer be necessary post omnibox popup boxing.
_popupView->UpdatePopupAppearance();
if (_popupView) {
_popupView->UpdatePopupAppearance();
}
}
@end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment