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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 1785953002: Ignore viewport meta tags when Request Desktop Site is enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disable HandheldFriendlyMeta and MobileOptimizedMeta as well Created 4 years, 9 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: 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;

Powered by Google App Engine
This is Rietveld 408576698