Index: ios/chrome/browser/tabs/tab.mm |
diff --git a/ios/chrome/browser/tabs/tab.mm b/ios/chrome/browser/tabs/tab.mm |
index 0e5272141e00bc4956b39cf884dd2d81278f3300..9b36d6d41b753fac0bc249af30b30b03d453c5dd 100644 |
--- a/ios/chrome/browser/tabs/tab.mm |
+++ b/ios/chrome/browser/tabs/tab.mm |
@@ -1526,8 +1526,7 @@ - (void)openAppStore:(NSString*)appId { |
} |
- (BOOL)useDesktopUserAgent { |
kkhorimoto
2017/02/22 01:08:40
The naming of this property is a little confusing,
kkhorimoto
2017/02/22 01:16:32
Oops, made a mistake, the implementation would be:
liaoyuke
2017/02/22 01:37:43
yeah, I also don't like the name of the function,
kkhorimoto
2017/02/22 01:54:33
I think we should go ahead and use isUsingDesktopU
|
- web::NavigationItem* currentItem = self.currentNavigationItem; |
- return currentItem && currentItem->IsOverridingUserAgent(); |
+ return [self navigationManager]->GetUseDesktopUserAgent(); |
} |
- (void)enableDesktopUserAgent { |