diff options
| author | Steve Block <steveblock@google.com> | 2010-10-21 17:50:57 +0100 |
|---|---|---|
| committer | Steve Block <steveblock@google.com> | 2010-10-21 17:53:20 +0100 |
| commit | 1c9ca4f1fa8ce06217c8c53da7f539d23ee11a1f (patch) | |
| tree | 4ba19b36914f645000c50261a062681abc9a0dbf /core | |
| parent | a376d030a2075909219926d622b71016418d7dcd (diff) | |
| download | frameworks_base-1c9ca4f1fa8ce06217c8c53da7f539d23ee11a1f.zip frameworks_base-1c9ca4f1fa8ce06217c8c53da7f539d23ee11a1f.tar.gz frameworks_base-1c9ca4f1fa8ce06217c8c53da7f539d23ee11a1f.tar.bz2 | |
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
Diffstat (limited to 'core')
| -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 e7aab9f..61a8cda 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(); } |
