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

Unified Diff: ios/chrome/browser/ui/browser_view_controller.mm

Issue 2711733007: Revert of (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
« no previous file with comments | « ios/chrome/browser/tabs/tab.mm ('k') | ios/web/navigation/crw_session_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/browser_view_controller.mm
diff --git a/ios/chrome/browser/ui/browser_view_controller.mm b/ios/chrome/browser/ui/browser_view_controller.mm
index d200e1a929116191cbf6702ecefa9fbf34ef3926..102e29ed46b11aa2b499b3eed04a69cbe1d124f6 100644
--- a/ios/chrome/browser/ui/browser_view_controller.mm
+++ b/ios/chrome/browser/ui/browser_view_controller.mm
@@ -1069,7 +1069,7 @@
return NO;
// If |useDesktopUserAgent| is |NO|, allow useDesktopUserAgent.
- return !tab.usesDesktopUserAgent;
+ return !tab.useDesktopUserAgent;
}
// Whether the sharing menu should be shown.
@@ -4802,7 +4802,7 @@
#pragma mark - PreloadControllerDelegate methods
- (BOOL)shouldUseDesktopUserAgent {
- return [_model currentTab].usesDesktopUserAgent;
+ return [_model currentTab].useDesktopUserAgent;
}
- (CRWSessionEntry*)currentSessionEntry {
« no previous file with comments | « ios/chrome/browser/tabs/tab.mm ('k') | ios/web/navigation/crw_session_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698