Commit 8e9edd10 authored by Justin Cohen's avatar Justin Cohen Committed by Commit Bot

[ios] Correct autoresizingMasks in launch screen incognito blocker.

Bug: 877195
Cq-Include-Trybots: luci.chromium.try:ios-simulator-full-configs;master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: I6b94acbe327886c90b640b149099db62c17c7719
Reviewed-on: https://chromium-review.googlesource.com/1188609
Commit-Queue: Rohit Rao <rohitrao@chromium.org>
Reviewed-by: default avatarRohit Rao <rohitrao@chromium.org>
Reviewed-by: default avatarJustin Cohen <justincohen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#585929}
parent 4dfb389c
...@@ -205,6 +205,10 @@ initWithBrowserLauncher:(id<BrowserLauncher>)browserLauncher ...@@ -205,6 +205,10 @@ initWithBrowserLauncher:(id<BrowserLauncher>)browserLauncher
UIViewController* launchScreenController = UIViewController* launchScreenController =
base::mac::ObjCCastStrict<UIViewController>([topObjects lastObject]); base::mac::ObjCCastStrict<UIViewController>([topObjects lastObject]);
[_incognitoBlocker addSubview:[launchScreenController view]]; [_incognitoBlocker addSubview:[launchScreenController view]];
[launchScreenController view].autoresizingMask =
UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
_incognitoBlocker.autoresizingMask =
UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
} else { } else {
InstallBackgroundInView(_incognitoBlocker); InstallBackgroundInView(_incognitoBlocker);
} }
......
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