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

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

Issue 2705293014: Created web::UserAgentType. (Closed)
Patch Set: rebase + compile fix 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 62341e6bafff0811f9a4a3c31adf59ca9ff84365..8cc7f823c950e8f4a5510e84a2e4792d5d980002 100644
--- a/ios/chrome/browser/tabs/tab.mm
+++ b/ios/chrome/browser/tabs/tab.mm
@@ -1567,7 +1567,8 @@ - (BOOL)usesDesktopUserAgent {
return NO;
web::NavigationItem* visibleItem = self.navigationManager->GetVisibleItem();
- return visibleItem && visibleItem->IsOverridingUserAgent();
+ return visibleItem &&
+ visibleItem->GetUserAgentType() == web::UserAgentType::DESKTOP;
}
- (void)enableDesktopUserAgent {
« no previous file with comments | « ios/chrome/browser/net/ios_chrome_http_user_agent_settings.mm ('k') | ios/chrome/browser/ui/webui/version_ui.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698