Commit 3407cf53 authored by Justin Cohen's avatar Justin Cohen Committed by Commit Bot

[ios] Fix 'newtab?' layout.

Bug: 860129
Cq-Include-Trybots: luci.chromium.try:ios-simulator-full-configs;master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: I6dec83e03cc51b5ce8239aebd8a5e22639a1996d
Reviewed-on: https://chromium-review.googlesource.com/1139633Reviewed-by: default avatarRohit Rao <rohitrao@chromium.org>
Commit-Queue: Justin Cohen <justincohen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#575660}
parent 3e167b2b
...@@ -3986,7 +3986,7 @@ applicationCommandEndpoint:(id<ApplicationCommands>)applicationCommandEndpoint { ...@@ -3986,7 +3986,7 @@ applicationCommandEndpoint:(id<ApplicationCommands>)applicationCommandEndpoint {
- (CGFloat)nativeContentHeaderHeightForWebState:(web::WebState*)webState { - (CGFloat)nativeContentHeaderHeightForWebState:(web::WebState*)webState {
Tab* tab = LegacyTabHelper::GetTabForWebState(webState); Tab* tab = LegacyTabHelper::GetTabForWebState(webState);
if (IsUIRefreshPhase1Enabled() && tab && if (IsUIRefreshPhase1Enabled() && tab &&
tab.webState->GetVisibleURL() == kChromeUINewTabURL && tab.webState->GetVisibleURL().GetOrigin() == kChromeUINewTabURL &&
![self canShowTabStrip]) { ![self canShowTabStrip]) {
if (self.usesFullscreenContainer) if (self.usesFullscreenContainer)
return 0; return 0;
......
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