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

Unified Diff: content/browser/frame_host/navigation_controller_android.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/frame_host/navigation_controller_android.cc
diff --git a/content/browser/frame_host/navigation_controller_android.cc b/content/browser/frame_host/navigation_controller_android.cc
index 81745177fb98485fba119fce5a7498fb1579a811..1d49c74aebff8a216697d5077e4fb880d9837259 100644
--- a/content/browser/frame_host/navigation_controller_android.cc
+++ b/content/browser/frame_host/navigation_controller_android.cc
@@ -12,6 +12,7 @@
#include "content/browser/frame_host/navigation_entry_impl.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/navigation_controller.h"
+#include "content/public/browser/render_view_host.h"
#include "content/public/browser/ssl_host_state_delegate.h"
#include "jni/NavigationControllerImpl_jni.h"
#include "net/base/data_url.h"
@@ -355,6 +356,7 @@ void NavigationControllerAndroid::SetUseDesktopUserAgent(
// Set the flag in the NavigationEntry.
entry->SetIsOverridingUserAgent(enabled);
+ navigation_controller_->UpdateOverridingUserAgent();
// Send the override to the renderer.
if (reload_on_state_change) {

Powered by Google App Engine
This is Rietveld 408576698