diff options
| -rw-r--r-- | core/java/android/webkit/CookieManager.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/webkit/CookieManager.java b/core/java/android/webkit/CookieManager.java index e7aab9f972db..61a8cda7fb85 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(); } |