Chromium Code Reviews| 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 6d0fb2cfa2b052059efebef06219a0dee45a6672..3564aabbfe50277e7ea23904b89f5f683b6b3132 100644 |
| --- a/ios/web/web_state/ui/crw_web_controller.mm |
| +++ b/ios/web/web_state/ui/crw_web_controller.mm |
| @@ -458,9 +458,9 @@ @interface CRWWebController ()<CRWContextMenuDelegate, |
| // Returns YES if the user interacted with the page recently. |
| @property(nonatomic, readonly) BOOL userClickedRecently; |
| -// Returns whether the desktop user agent should be used when setting the user |
| -// agent. |
| -@property(nonatomic, readonly) BOOL useDesktopUserAgent; |
| + |
| +// Whether or not desktop user agent is used for the currentItem. |
| +@property(nonatomic, readonly) BOOL usesDesktopUserAgent; |
|
kkhorimoto
2017/02/24 19:21:27
Again, I think that it would be better to fold thi
Eugene But (OOO till 7-30)
2017/02/24 19:49:18
This is existing property which will be fully remo
|
| // Facade for Mojo API. |
| @property(nonatomic, readonly) web::MojoFacade* mojoFacade; |
| @@ -2349,7 +2349,7 @@ - (BOOL)shouldClosePageOnNativeApplicationLoad { |
| return rendererInitiatedWithoutInteraction || noNavigationItems; |
| } |
| -- (BOOL)useDesktopUserAgent { |
| +- (BOOL)usesDesktopUserAgent { |
| web::NavigationItem* item = [self currentNavItem]; |
| return item && item->IsOverridingUserAgent(); |
| } |
| @@ -4225,7 +4225,7 @@ - (WKWebView*)webViewWithConfiguration:(WKWebViewConfiguration*)config { |
| // delegate must be specified. |
| return web::BuildWKWebView(CGRectZero, config, |
| self.webStateImpl->GetBrowserState(), |
| - [self useDesktopUserAgent]); |
| + self.usesDesktopUserAgent); |
| } |
| - (void)setWebView:(WKWebView*)webView { |