Commit 12f93688 authored by Gauthier Ambard's avatar Gauthier Ambard Committed by Commit Bot

[iOS] Don't add OpenInNewTab animation on iPad

This CL don't trigger the new animation for OpenInNewTab when the
TabStrip is present as the TabStrip already have an animation.

Bug: none
Cq-Include-Trybots: luci.chromium.try:ios-simulator-full-configs;master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: I2cb7a5e67695b2249373a519e6521523dfa0354d
Reviewed-on: https://chromium-review.googlesource.com/1140159Reviewed-by: default avatarRohit Rao <rohitrao@chromium.org>
Commit-Queue: Gauthier Ambard <gambard@chromium.org>
Cr-Commit-Position: refs/heads/master@{#575618}
parent 55787a31
...@@ -4485,7 +4485,7 @@ applicationCommandEndpoint:(id<ApplicationCommands>)applicationCommandEndpoint { ...@@ -4485,7 +4485,7 @@ applicationCommandEndpoint:(id<ApplicationCommands>)applicationCommandEndpoint {
inBackground:inBackground]; inBackground:inBackground];
}; };
if (!IsUIRefreshPhase1Enabled() || !inBackground || if (!IsUIRefreshPhase1Enabled() || !inBackground || [self canShowTabStrip] ||
CGPointEqualToPoint(originPoint, CGPointZero)) { CGPointEqualToPoint(originPoint, CGPointZero)) {
openTab(); openTab();
} else { } else {
......
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