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

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: Change loop style Created 4 years, 8 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 96aceacc0708c7c7219ea3cbe3a87fc38b7c966f..840771550f493682f02002173b6392b3187a9e8a 100644
--- a/content/browser/frame_host/navigation_controller_android.cc
+++ b/content/browser/frame_host/navigation_controller_android.cc
@@ -9,9 +9,9 @@
#include "base/android/jni_android.h"
#include "base/android/jni_array.h"
#include "base/android/jni_string.h"
+#include "content/browser/frame_host/navigation_controller_impl.h"
#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/ssl_host_state_delegate.h"
#include "jni/NavigationControllerImpl_jni.h"
#include "net/base/data_url.h"
@@ -76,7 +76,7 @@ bool NavigationControllerAndroid::Register(JNIEnv* env) {
}
NavigationControllerAndroid::NavigationControllerAndroid(
- NavigationController* navigation_controller)
+ NavigationControllerImpl* navigation_controller)
: navigation_controller_(navigation_controller) {
JNIEnv* env = AttachCurrentThread();
obj_.Reset(env,
@@ -355,6 +355,7 @@ void NavigationControllerAndroid::SetUseDesktopUserAgent(
// Set the flag in the NavigationEntry.
entry->SetIsOverridingUserAgent(enabled);
+ navigation_controller_->delegate()->UpdateOverridingUserAgent();
// Send the override to the renderer.
if (reload_on_state_change) {

Powered by Google App Engine
This is Rietveld 408576698