Commit d7b61d89 authored by Rohit Rao's avatar Rohit Rao Committed by Commit Bot

[ios] Removes the launch screen when showing the tab switcher.

This was accidentally dropped during a rebase of
https://chromium-review.googlesource.com/c/chromium/src/+/920521/4.

BUG=803758,813712

Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs
Change-Id: Ic60756a3a0cef504ceb9506461be8cf16b0a26c2
Reviewed-on: https://chromium-review.googlesource.com/941908Reviewed-by: default avataredchin <edchin@chromium.org>
Reviewed-by: default avatarMark Cogan <marq@chromium.org>
Commit-Queue: Rohit Rao <rohitrao@chromium.org>
Cr-Commit-Position: refs/heads/master@{#540002}
parent 1e5ae9d2
...@@ -74,6 +74,12 @@ ...@@ -74,6 +74,12 @@
completion:(ProceduralBlock)completion { completion:(ProceduralBlock)completion {
DCHECK(tabSwitcher); DCHECK(tabSwitcher);
// Before any child view controller would be added, remove the launch screen.
if (self.launchScreen) {
[self.launchScreen removeFromSuperview];
self.launchScreen = nil;
}
// Don't remove and re-add the tabSwitcher if it hasn't changed. // Don't remove and re-add the tabSwitcher if it hasn't changed.
if (self.tabSwitcher != tabSwitcher) { if (self.tabSwitcher != tabSwitcher) {
// Remove any existing tab switchers first. // Remove any existing tab switchers first.
......
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