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

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

Issue 2698773002: [iOS] Refactoring web CRWSessionController user agent code. (Closed)
Patch Set: Addressed feedback 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 8d01bd1600887289ea01f531f8358074f2e2c85b..cda1542af0f99c6e8ee78c100c7b1717e071fb1d 100644
--- a/ios/chrome/browser/tabs/tab.mm
+++ b/ios/chrome/browser/tabs/tab.mm
@@ -1521,8 +1521,7 @@ - (BOOL)useDesktopUserAgent {
- (void)enableDesktopUserAgent {
DCHECK_EQ(self.useDesktopUserAgent, NO);
DCHECK([self navigationManager]);
- [[self navigationManager]->GetSessionController()
- useDesktopUserAgentForNextPendingItem];
+ [self navigationManager]->OverrideDesktopUserAgentForNextPendingItem();
}
- (void)reloadForDesktopUserAgent {

Powered by Google App Engine
This is Rietveld 408576698