From 1c9ca4f1fa8ce06217c8c53da7f539d23ee11a1f Mon Sep 17 00:00:00 2001 From: Steve Block Date: Thu, 21 Oct 2010 17:50:57 +0100 Subject: [PATCH] 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 --- core/java/android/webkit/CookieManager.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/java/android/webkit/CookieManager.java b/core/java/android/webkit/CookieManager.java index e7aab9f972dbe..61a8cda7fb85d 100644 --- a/core/java/android/webkit/CookieManager.java +++ b/core/java/android/webkit/CookieManager.java @@ -524,6 +524,11 @@ public final class CookieManager { * Remove all cookies */ 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() { public void run() { synchronized(CookieManager.this) { @@ -1016,4 +1021,7 @@ public final class CookieManager { } return ret; } + + // Native functions + private static native void nativeRemoveAllCookie(); }