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

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwSettings.java

Issue 22909031: [Android WebView] Parametrize targetDensityDpi support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added a comment Created 7 years, 4 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: android_webview/java/src/org/chromium/android_webview/AwSettings.java
diff --git a/android_webview/java/src/org/chromium/android_webview/AwSettings.java b/android_webview/java/src/org/chromium/android_webview/AwSettings.java
index eea28987e69855155c5f4ebc91121089816f1459..0247ed428090977ea31b498156598b6c88d46148 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwSettings.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwSettings.java
@@ -82,7 +82,7 @@ public class AwSettings {
private String mDefaultVideoPosterURL;
private float mInitialPageScalePercent = 0;
- private final boolean mSupportDeprecatedTargetDensityDPI = true;
+ private final boolean mSupportDeprecatedTargetDensityDPI;
private final boolean mPasswordEchoEnabled;
@@ -175,7 +175,8 @@ public class AwSettings {
public AwSettings(Context context, boolean hasInternetPermission,
ZoomSupportChangeListener zoomChangeListener,
boolean isAccessFromFileURLsGrantedByDefault,
- double dipScale) {
+ double dipScale,
+ boolean supportsLegacyQuirks) {
ThreadUtils.assertOnUiThread();
synchronized (mAwSettingsLock) {
mHasInternetPermission = hasInternetPermission;
@@ -195,6 +196,8 @@ public class AwSettings {
// Respect the system setting for password echoing.
mPasswordEchoEnabled = Settings.System.getInt(context.getContentResolver(),
Settings.System.TEXT_SHOW_PASSWORD, 1) == 1;
+
+ mSupportDeprecatedTargetDensityDPI = supportsLegacyQuirks;
}
// Defer initializing the native side until a native WebContents instance is set.
}

Powered by Google App Engine
This is Rietveld 408576698