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

Unified Diff: ios/web/navigation/navigation_manager_impl.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/navigation/navigation_manager_impl.mm
diff --git a/ios/web/navigation/navigation_manager_impl.mm b/ios/web/navigation/navigation_manager_impl.mm
index 140c760468abf0f45fe5fdaa6d512dbb8b08ed32..e1161720915f53bf11a578df9041e4051f72b097 100644
--- a/ios/web/navigation/navigation_manager_impl.mm
+++ b/ios/web/navigation/navigation_manager_impl.mm
@@ -420,6 +420,10 @@ bool AreURLsInPageNavigation(const GURL& existing_url, const GURL& new_url) {
return result;
}
+bool NavigationManagerImpl::GetUseDesktopUserAgent() const {
+ return GetVisibleItem() && GetVisibleItem()->IsOverridingUserAgent();
+}
+
void NavigationManagerImpl::OverrideDesktopUserAgentForNextPendingItem() {
if (GetPendingItem())
GetPendingItem()->SetIsOverridingUserAgent(true);

Powered by Google App Engine
This is Rietveld 408576698