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

Commit 1c9ca4f1 authored by Steve Block's avatar Steve Block
Browse files

Hook up CookieManager.removeAllCookie() for the Chromium HTTP stack

Requires a change to external/webkit ...
https://android-git.corp.google.com/g/75473

Bug: 3086308
Change-Id: I01274b3b1384a6947d5a56a51b0b93b1898ddebc
parent a376d030
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
@@ -524,6 +524,11 @@ public final class CookieManager {
     * Remove all cookies
     * Remove all cookies
     */
     */
    public void removeAllCookie() {
    public void removeAllCookie() {
        // Clear cookies for the Chromium HTTP stack
        nativeRemoveAllCookie();
        // Clear cookies for the Android HTTP stack
        // TODO: Remove this if/when we permanently switch to the Chromium HTTP stack
        // http:/b/3118772
        final Runnable clearCache = new Runnable() {
        final Runnable clearCache = new Runnable() {
            public void run() {
            public void run() {
                synchronized(CookieManager.this) {
                synchronized(CookieManager.this) {
@@ -1016,4 +1021,7 @@ public final class CookieManager {
        }
        }
        return ret;
        return ret;
    }
    }

    // Native functions
    private static native void nativeRemoveAllCookie();
}
}