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

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

Issue 2710593010: Reland of (Set)IsOverridingUserAgent should be called on VisibleItem (Closed)
Patch Set: Update comments 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/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 04a2708e8e9f170fc7165cf3e0b6820a43492718..9b3b3afa3ff9a8cbe9cf40f7fc6d4b47c8adb8b0 100644
--- a/ios/chrome/browser/ui/browser_view_controller.mm
+++ b/ios/chrome/browser/ui/browser_view_controller.mm
@@ -1069,7 +1069,7 @@ - (BOOL)canUseDesktopUserAgent {
return NO;
// If |useDesktopUserAgent| is |NO|, allow useDesktopUserAgent.
- return !tab.useDesktopUserAgent;
+ return !tab.usesDesktopUserAgent;
}
// Whether the sharing menu should be shown.
@@ -4814,7 +4814,7 @@ - (BOOL)verifyToolbarViewPlacementInView:(UIView*)views {
#pragma mark - PreloadControllerDelegate methods
- (BOOL)shouldUseDesktopUserAgent {
- return [_model currentTab].useDesktopUserAgent;
+ return [_model currentTab].usesDesktopUserAgent;
}
- (CRWSessionEntry*)currentSessionEntry {

Powered by Google App Engine
This is Rietveld 408576698