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

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

Issue 2705293014: Created web::UserAgentType. (Closed)
Patch Set: self review 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 f669f1bfbc80ababda2f0e9c34eae5e1e1b9fb05..7a7a598497dfe3f5aef7a954338a22f30cb6f225 100644
--- a/ios/chrome/browser/tabs/tab.mm
+++ b/ios/chrome/browser/tabs/tab.mm
@@ -1555,7 +1555,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