Commit 77121bde authored by Gauthier Ambard's avatar Gauthier Ambard Committed by Commit Bot

[iOS] Use UIModalPresentationPageSheet for ConsentBump

The ConsentBump should be displayed modally on iPhone+ landscape and
iPad.

Bug: 873128
Cq-Include-Trybots: luci.chromium.try:ios-simulator-full-configs;master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: I96482c930ef1b6b94509e8aafd7b1691b76b2e28
Reviewed-on: https://chromium-review.googlesource.com/1170823Reviewed-by: default avatarJérôme Lebel <jlebel@chromium.org>
Reviewed-by: default avatarMark Cogan <marq@chromium.org>
Commit-Queue: Gauthier Ambard <gambard@chromium.org>
Cr-Commit-Position: refs/heads/master@{#582529}
parent 26360444
......@@ -5051,6 +5051,8 @@ applicationCommandEndpoint:(id<ApplicationCommands>)applicationCommandEndpoint {
[[ConsentBumpCoordinator alloc] initWithBaseViewController:self];
self.consentBumpCoordinator.delegate = self;
[self.consentBumpCoordinator start];
self.consentBumpCoordinator.viewController.modalPresentationStyle =
UIModalPresentationPageSheet;
[self presentViewController:self.consentBumpCoordinator.viewController
animated:YES
completion:nil];
......
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