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

Unified Diff: ios/web/web_state/ui/crw_web_controller.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/web/web_state/ui/crw_web_controller.mm
diff --git a/ios/web/web_state/ui/crw_web_controller.mm b/ios/web/web_state/ui/crw_web_controller.mm
index d7b23f99c7573a022fe4198887750408b277e351..6e16b4b142fdd96fe99d0b9e207852c7bda5c99b 100644
--- a/ios/web/web_state/ui/crw_web_controller.mm
+++ b/ios/web/web_state/ui/crw_web_controller.mm
@@ -2363,8 +2363,7 @@ - (BOOL)shouldClosePageOnNativeApplicationLoad {
}
- (BOOL)useDesktopUserAgent {
kkhorimoto 2017/02/22 01:08:40 This property is only used once in |-webViewWithCo
liaoyuke 2017/02/22 01:37:43 Done.
- web::NavigationItem* item = [self currentNavItem];
- return item && item->IsOverridingUserAgent();
+ return [self navigationManagerImpl]->GetUseDesktopUserAgent();
}
- (web::MojoFacade*)mojoFacade {

Powered by Google App Engine
This is Rietveld 408576698