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

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

Issue 2711683002: (Set)IsOverridingUserAgent should be called on VisibleItem (Closed)
Patch Set: 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 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 {
« no previous file with comments | « no previous file | ios/web/navigation/crw_session_controller.mm » ('j') | ios/web/navigation/crw_session_controller.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698