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

Commit f3bac948 authored by Steve Block's avatar Steve Block Committed by Android (Google) Code Review
Browse files

Merge "Hook up CookieManager.getCookie() for Chromium HTTP stack"

parents e19b3893 dcd2d0de
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -427,6 +427,10 @@ public final class CookieManager {
     * @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);
@@ -1045,6 +1049,7 @@ public final class CookieManager {
    // 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);
}