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

Commit 72e85706 authored by Martin Brabham's avatar Martin Brabham
Browse files

Add function needed for removing cookies.

parent 0128a783
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -192,6 +192,17 @@ public final class CookieSyncManager extends WebSyncManager {
        }
    }

    public void clearRamCache(long fromTime){
        ArrayList<Cookie> cookieList = CookieManager.getInstance()
                .getUpdatedCookiesSince(fromTime);
        Iterator<Cookie> it = cookieList.iterator();
        while (it.hasNext()){
            Cookie c = it.next();
            c.mode = Cookie.MODE_DELETED;
            CookieManager.getInstance().deleteACookie(c);
        }
    }

    private void syncFromRamToFlash(ArrayList<Cookie> list) {
        Iterator<Cookie> iter = list.iterator();
        while (iter.hasNext()) {