[ios] Fix the crash in [BrowserViewController willAnimateViewReveal:]
This CL guards [self.tabStripView screenshotForAnimation] by checking if the flag is disabled. The problem is that in TabStripCoordinator's -view, the coordinator's view controller is cast to UIView<TabStripContaining>. However, the view does not actually conform to this protocol, so calling the protocol method leads to an does not respond to selector issue. This guard will stop the crashes with no current implementation of taking the snapshot. Bug: 1158298,1128249 Change-Id: Ia939e565451f3e705989c0dc0769ba038f45f922 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2612846 Commit-Queue: Nazerke Kalidolda <nazerke@google.com> Reviewed-by:Gauthier Ambard <gambard@chromium.org> Cr-Commit-Position: refs/heads/master@{#841957}
Showing
Please register or sign in to comment