Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Unified Diff: ios/chrome/browser/tabs/tab.mm

Issue 2705293014: Created web::UserAgentType. (Closed)
Patch Set: Eugene's comments Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 {

Powered by Google App Engine
This is Rietveld 408576698