Requires a change to external/webkit ...
https://android-git.corp.google.com/g/76603
Bug:
3116410
Change-Id: Id0cd5871fd13f952d4f2aa963576a4e610459a18
* @return The cookies in the format of NAME=VALUE [; NAME=VALUE]
*/
public String getCookie(String url) {
+ if (useChromiumHttpStack()) {
+ return nativeGetCookie(url);
+ }
+
WebAddress uri;
try {
uri = new WebAddress(url);
// Native functions
private static native boolean nativeUseChromiumHttpStack();
private static native boolean nativeAcceptCookie();
+ private static native String nativeGetCookie(String url);
private static native void nativeRemoveAllCookie();
private static native void nativeSetAcceptCookie(boolean accept);
}