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

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

Issue 2698773002: [iOS] Refactoring web CRWSessionController user agent code. (Closed)
Patch Set: Fix unit tests and rebase 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 8e017f5358fd15ce490b75102b1f452a8c079076..0e5272141e00bc4956b39cf884dd2d81278f3300 100644
--- a/ios/chrome/browser/tabs/tab.mm
+++ b/ios/chrome/browser/tabs/tab.mm
@@ -1533,8 +1533,7 @@ - (BOOL)useDesktopUserAgent {
- (void)enableDesktopUserAgent {
DCHECK_EQ(self.useDesktopUserAgent, NO);
DCHECK([self navigationManager]);
- [[self navigationManager]->GetSessionController()
- useDesktopUserAgentForNextPendingItem];
+ [self navigationManager]->OverrideDesktopUserAgentForNextPendingItem();
}
- (void)reloadForDesktopUserAgent {
« no previous file with comments | « ios/chrome/browser/native_app_launcher/native_app_navigation_util_unittest.mm ('k') | ios/chrome/browser/tabs/tab_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698