Chromium Code Reviews| Index: content/browser/web_contents/web_contents_impl.cc |
| diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc |
| index 769812393ef8e9657bb5f044c4c3e61bc7e1c48d..a5091df5949e7c151d916ee4dd1cc2496c0809ea 100644 |
| --- a/content/browser/web_contents/web_contents_impl.cc |
| +++ b/content/browser/web_contents/web_contents_impl.cc |
| @@ -2171,6 +2171,11 @@ bool WebContentsImpl::IsVirtualKeyboardRequested() { |
| return virtual_keyboard_requested_; |
| } |
| +bool WebContentsImpl::IsOverridingUserAgent() { |
| + return GetController().GetVisibleEntry() && |
| + GetController().GetVisibleEntry()->GetIsOverridingUserAgent(); |
| +} |
| + |
| AccessibilityMode WebContentsImpl::GetAccessibilityMode() const { |
| return accessibility_mode_; |
| } |
| @@ -4847,6 +4852,10 @@ void WebContentsImpl::UpdateWebContentsVisibility(bool visible) { |
| WasHidden(); |
| } |
| +void WebContentsImpl::UpdateOverridingUserAgent() { |
| + GetRenderViewHost()->OnWebkitPreferencesChanged(); |
|
nasko
2016/03/18 21:05:25
This doesn't seem compatible with out-of-process i
aelias_OOO_until_Jul13
2016/03/18 22:49:18
The enableViewportMeta setting only ever has an ef
nasko
2016/03/25 23:29:05
But this is method that calls for overriding user
aelias_OOO_until_Jul13
2016/04/07 03:06:14
OK, I changed to loop through the FrameTreeNodes (
|
| +} |
| + |
| void WebContentsImpl::SetJavaScriptDialogManagerForTesting( |
| JavaScriptDialogManager* dialog_manager) { |
| dialog_manager_ = dialog_manager; |