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

Unified Diff: android_webview/native/aw_settings.cc

Issue 23899004: Use contents size for android_webview layout. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 3 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
« no previous file with comments | « android_webview/native/aw_settings.h ('k') | android_webview/native/aw_web_contents_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/aw_settings.cc
diff --git a/android_webview/native/aw_settings.cc b/android_webview/native/aw_settings.cc
index 1be87d8211482e006c5ca6f27a7910f9e8734bed..9b6c44c3e0453f5bd66fe879328fd8c307f20bd8 100644
--- a/android_webview/native/aw_settings.cc
+++ b/android_webview/native/aw_settings.cc
@@ -72,7 +72,6 @@ void AwSettings::UpdateEverythingLocked(JNIEnv* env, jobject obj) {
UpdateWebkitPreferencesLocked(env, obj);
UpdateUserAgentLocked(env, obj);
ResetScrollAndScaleState(env, obj);
- UpdatePreferredSizeMode();
UpdateFormDataPreferencesLocked(env, obj);
}
@@ -231,12 +230,6 @@ void AwSettings::UpdateInitialPageScaleLocked(JNIEnv* env, jobject obj) {
}
}
-void AwSettings::UpdatePreferredSizeMode() {
- if (web_contents()->GetRenderViewHost()) {
- web_contents()->GetRenderViewHost()->EnablePreferredSizeMode();
- }
-}
-
void AwSettings::UpdateFormDataPreferencesLocked(JNIEnv* env, jobject obj) {
if (!web_contents()) return;
AwContents* contents = AwContents::FromWebContents(web_contents());
« no previous file with comments | « android_webview/native/aw_settings.h ('k') | android_webview/native/aw_web_contents_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698