Index: ios/chrome/browser/tabs/tab.mm |
diff --git a/ios/chrome/browser/tabs/tab.mm b/ios/chrome/browser/tabs/tab.mm |
index f49e7c9bdddcc2d9f8ea15d905adef4e24518ce7..3e61d53c5b12ce992983e62840ba09844a7d3958 100644 |
--- a/ios/chrome/browser/tabs/tab.mm |
+++ b/ios/chrome/browser/tabs/tab.mm |
@@ -1589,7 +1589,8 @@ - (BOOL)usesDesktopUserAgent { |
return NO; |
web::NavigationItem* visibleItem = self.navigationManager->GetVisibleItem(); |
- return visibleItem && visibleItem->IsOverridingUserAgent(); |
+ return visibleItem && |
+ visibleItem->GetUserAgentType() == web::UserAgentType::DESKTOP; |
} |
- (void)enableDesktopUserAgent { |