Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 20141b55 authored by Richard (Torne) Coles's avatar Richard (Torne) Coles Committed by Android (Google) Code Review
Browse files

Reland "Deprecate `setDatabaseEnabled` and `getDatabaseEnabled`"

This deprecates `setDatabaseEnabled` and `getDatabaseEnabled`.
WebSQL will be fully removed on WebView.

Relanding now that API deprecations are allowed.

Bug: 316370537
Change-Id: I5b83fa0fdfa4ee839d7fbc628af5be281857ad61
parent c9d0f4c5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -57368,7 +57368,7 @@ package android.webkit {
    method public abstract boolean getBuiltInZoomControls();
    method public abstract int getCacheMode();
    method public abstract String getCursiveFontFamily();
    method public abstract boolean getDatabaseEnabled();
    method @Deprecated public abstract boolean getDatabaseEnabled();
    method @Deprecated public abstract String getDatabasePath();
    method public abstract int getDefaultFixedFontSize();
    method public abstract int getDefaultFontSize();
@@ -57414,7 +57414,7 @@ package android.webkit {
    method public abstract void setBuiltInZoomControls(boolean);
    method public abstract void setCacheMode(int);
    method public abstract void setCursiveFontFamily(String);
    method public abstract void setDatabaseEnabled(boolean);
    method @Deprecated public abstract void setDatabaseEnabled(boolean);
    method @Deprecated public abstract void setDatabasePath(String);
    method public abstract void setDefaultFixedFontSize(int);
    method public abstract void setDefaultFontSize(int);
+8 −0
Original line number Diff line number Diff line
@@ -1203,7 +1203,11 @@ public abstract class WebSettings {
     * changes to this setting after that point.
     *
     * @param flag {@code true} if the WebView should use the database storage API
     * @deprecated WebSQL is deprecated and this method will become a no-op on all
     * Android versions once support is removed in Chromium. See
     * https://developer.chrome.com/blog/deprecating-web-sql for more information.
     */
    @Deprecated
    public abstract void setDatabaseEnabled(boolean flag);

    /**
@@ -1236,7 +1240,11 @@ public abstract class WebSettings {
     *
     * @return {@code true} if the database storage API is enabled
     * @see #setDatabaseEnabled
     * @deprecated WebSQL is deprecated and this method will become a no-op on all
     * Android versions once support is removed in Chromium. See
     * https://developer.chrome.com/blog/deprecating-web-sql for more information.
     */
    @Deprecated
    public abstract boolean getDatabaseEnabled();

    /**